Skip to content

Instantly share code, notes, and snippets.

@sapphi-red
Created May 24, 2022 13:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sapphi-red/c1c02a1df86fbd0df9526f2d0f5e6e6a to your computer and use it in GitHub Desktop.
Save sapphi-red/c1c02a1df86fbd0df9526f2d0f5e6e6a to your computer and use it in GitHub Desktop.

core-js es.array.iterator with Chrome53 reproduction

  1. Run commands
    $ npm i
    $ npm run build
    $ npm run serve
  2. Access localhost:8080 with Chrome 53
  3. The error below is shown in dev tools image
import builder from 'core-js-builder'
import fs from 'fs/promises'
const bundle = await builder({
modules: 'es.array.iterator'
})
await fs.writeFile('./bundle.js', bundle, 'utf-8')
<html>
<script src="./bundle.js"></script>
</html>
{
"name": "po",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "node build.mjs",
"serve": "sirv ."
},
"author": "sapphi-red",
"license": "ISC",
"devDependencies": {
"core-js-builder": "^3.22.6",
"sirv-cli": "^2.0.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment