Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
* Changed Webpack to target ES2015 (as part of my shift to es2015 as …
Browse files Browse the repository at this point in the history
…the target for all my projects/libs). [the project required es6 anyway due to mobx 5, since it uses es2015 proxies, which are unable to be fully polyfilled]
  • Loading branch information
Venryx committed Dec 12, 2019
1 parent 263f6c1 commit 2a51be8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Scripts/Build/WebpackConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ webpackConfig.module.rules = [
{
loose: true,
exclude: DEV ? ['babel-plugin-transform-async-to-generator', 'babel-plugin-transform-regenerator'] : [],
// targets: {esmodules: true}, // target es2015
targets: { node: '6.5' }, // target es2015
},
],
'@babel/react',
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
//"target": "ES5",
//"target": "es2015",
//"target": "es2017",
"target": "esnext",
"target": "esnext", // babel targets es2015 (ie. transpiles our code to it), so it's fine for TS to target es-next
"lib": [
"es5",
"es6",
Expand Down

0 comments on commit 2a51be8

Please sign in to comment.