diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-09-09 08:03:42 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-09-09 10:23:49 +0300 |
commit | 12d7c9ad1915c5a9c3a9a4b2d75b219235e08521 (patch) | |
tree | 1a84f9afc56d9f0f7195350a4a746210310b8d01 /babel.config.js | |
parent | a48b479776bf3c9d0f7fd977c5bc3e124276fcf3 (diff) |
Use core-js and babel plugins
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'babel.config.js')
-rw-r--r-- | babel.config.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/babel.config.js b/babel.config.js index 58c179730..8a55521ac 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,12 +1,17 @@ module.exports = { - plugins: ['@babel/plugin-syntax-dynamic-import'], + plugins: [ + '@babel/plugin-syntax-dynamic-import', + '@babel/plugin-transform-classes', + ['@babel/plugin-proposal-class-properties', { loose: true }], + ], presets: [ [ '@babel/preset-env', { - "modules": false - } - ] + corejs: 3, + useBuiltIns: 'entry', + }, + ], ], env: { test: { |