Reproduce the issue with missing polyfills.
- Install dependencies
yarn
- Run compilation
yarn build
- See that the output
dist/main.js
does not include the polyfills
- NO POLYFILLS printed to the console
- or just search for
flat:
in that file
- Remove one of the presets from the
webpack.config.js
- Compile again
- POLYFILLS ARE PRESENT printed to the console
- or just search for
flat:
in that file
yarn build
- See that the output
dist/main.js
includes the polyfills (search forflat:
)