Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ertrzyiks/babel-loader-lost-polyfills-demo
https://github.com/ertrzyiks/babel-loader-lost-polyfills-demo
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ertrzyiks/babel-loader-lost-polyfills-demo
- Owner: ertrzyiks
- Created: 2020-12-22T12:09:40.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-23T14:51:58.000Z (about 4 years ago)
- Last Synced: 2024-12-07T19:35:52.903Z (about 1 month ago)
- Language: JavaScript
- Size: 82 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# babel-loader-lost-polyfills-demo
Reproduce the issue with missing polyfills.
1. Install dependencies
```
yarn
```2. Run compilation
```
yarn build
```3. 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
4. Remove one of the presets from the `webpack.config.js`
5. Compile again
- POLYFILLS ARE PRESENT printed to the console
- or just search for `flat:` in that file```
yarn build
```
6. See that the output `dist/main.js` includes the polyfills (search for `flat:`)