New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Polyfill #907
Comments
Microbundle's babel configuration is generated here: microbundle/src/lib/babel-custom.js Line 171 in afa74ca
|
Not only Object.assign, but also other new APIs, such as Iterator, Generator, Set, Maps, Proxy, Reflect, Symbol, Promise and other objects. I think I should use "useBuiltIns": "usage", how should I modify the configuration now to achieve it. Just create a new babel.config.json file as follows, this will completely overwrite or merge the default configuration:
|
@lvzegeng it will overwrite the default configuration. |
I want to add Polyfill to new syntax such as Object.assign when packaging, for example, add useBuiltIns:'entry' to the corresponding babel configuration. What should I do, create a new babel configuration file, if so, what is the default babel configuration of the microbundle? I can modify it based on this
The text was updated successfully, but these errors were encountered: