Documentation for rewrite_polyfills in the API is missing
See original GitHub issueI 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:
- Created 5 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We should also rename the option, as it doesn’t rewrite polyfills it simply includes them.
https://developers.google.com/closure/compiler/docs/api-ref now includes
rewrite_polyfills
so marking as fixed.