Skip to content

Instantly share code, notes, and snippets.

@bellydrum
Last active September 18, 2023 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bellydrum/df12bd956f03881c087e3504416848d2 to your computer and use it in GitHub Desktop.
Save bellydrum/df12bd956f03881c087e3504416848d2 to your computer and use it in GitHub Desktop.
Since some applications will apparently need to support IE until the end of time, here's an easy way to do so while continuing to write modern Javascript.
{
"scripts": {
"transpile": "./node_modules/.bin/babel src/ --out-dir public/"
},
"babel": {
"presets": [
"@babel/preset-env"
]
},
"devDependencies": {
"@babel/cli": "^7.22.15",
"@babel/core": "^7.22.20",
"@babel/preset-env": "^7.22.20"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment