-
-
Save sapphi-red/c1c02a1df86fbd0df9526f2d0f5e6e6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script src="./bundle.js"></script> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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