Closed jstralko closed 7 years ago
You can add add additional polyfills as dependencies and import them before you kick your app off.
E.g. if you add core-js
as a dependency, adding import 'core-js/fn/array/from'
to the top of src/index.js
should do the trick. Individual module polyfills are available too.
Thanks for the help. This is exactly what I was looking for. Thank you for all your work on nwb.
This issue is a:
I'm having trouble poly filling Array.from using nwb toolkit. I'm unsure who to configure nwb.config.js to tell Babel to polyfill it. Do I need to add a preset or plugin? It looks like fetch, Promise, and Object.assign work just fine, but Array.from and a few others are undefined when running my react application in IE11.
my nwb.config.js is very minimal:
};