How do I use babel's `useBuiltIns: 'usage'` option on the vendors bundle?
Since I need to support also IE11, I need to transpile also node_modules . This is the babel config I use on the node_modules: presets: [ ['@babel/preset-env', { modules: false, useBuiltIns: 'usage' }], ], I use the useBuiltIns options because it was giving an error Symbol is not defined , the polyfill was needed. However this configuration breaks at compile time, supposedly because it injects some imports in the code, here is the error: Basically it's not liking the module.exports . So how do I use useBuiltIns in the vendors bundle? For now I solved by always requiring the babel polyfill in