question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation for rewrite_polyfills in the API is missing

See original GitHub issue

I noticed the output from the command-line closure compiler included polyfills (recognizable by inclusion of $jscomp object at the beginning of the code), but the API service and the demo compiler do not include polyfills by default. I stumbled around the internet for a while before I finally found an answer on stack overflow that pointed me to the rewrite_polyfills parameter. It would be great if rewrite_polyfills could be documented at https://developers.google.com/closure/compiler/docs/api-ref and the default noted.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
concavelenzcommented, Nov 1, 2018

We should also rename the option, as it doesn’t rewrite polyfills it simply includes them.

0reactions
lauraharkercommented, Oct 6, 2021

https://developers.google.com/closure/compiler/docs/api-ref now includes rewrite_polyfills so marking as fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

:rewrite-polyfills - ClojureScript API
Native symbol Native version Polyfill version Polyfill library Array.from es6 es3 es6/array/from Array.of es6 es3 es6/array/of Array.prototype.copyWithin es6 es3 es6/array/copywithin
Read more >
How do I install the babel-polyfill library? - Stack Overflow
From the docs: The polyfill will emulate a full ES6 environment. This polyfill is automatically loaded when using babel-node. Installation: $ npm ...
Read more >
Compiler Options - ClojureScript
:rewrite-polyfills. If set to true, the google closure compiler will add polyfills (for example when you use native javascript Promise ). This requires ......
Read more >
Configuring Vite
Configuring Vite #. When running vite from the command line, Vite will automatically try to resolve a config file named vite.config.js inside project...
Read more >
babel/plugin-transform-runtime
Specifying a number will rewrite the helpers that need polyfillable APIs to ... By default, @babel/plugin-transform-runtime doesn't polyfill proposals.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found