diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-10-02 01:09:58 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-10-02 14:58:20 -0500 |
commit | 6553348aff043870bd5449cd22a3dc5a4e869de3 (patch) | |
tree | d6fd0b7ec527b27a37e49e4feb49d69155b4db13 /.babelrc | |
parent | 0ef1060e14b8ac09159e466fe5f4ca3195e080c2 (diff) | |
download | gitlab-ce-6553348aff043870bd5449cd22a3dc5a4e869de3.tar.gz |
Upgrade to babel 7
Diffstat (limited to '.babelrc')
-rw-r--r-- | .babelrc | 26 |
1 files changed, 21 insertions, 5 deletions
@@ -1,24 +1,40 @@ { - "presets": [["latest", { "es2015": { "modules": false } }], "stage-2"], + "presets": [ + [ + "@babel/preset-env", + { + "modules": false, + "targets": { + "ie": "11" + } + } + ] + ], + "plugins": [ + "@babel/plugin-syntax-dynamic-import", + "@babel/plugin-syntax-import-meta", + "@babel/plugin-proposal-class-properties", + "@babel/plugin-proposal-json-strings" + ], "env": { "karma": { - "plugins": ["rewire"] + "plugins": ["babel-plugin-rewire"] }, "coverage": { "plugins": [ [ - "istanbul", + "babel-plugin-istanbul", { "exclude": ["spec/javascripts/**/*", "app/assets/javascripts/locale/**/app.js"] } ], [ - "transform-define", + "babel-plugin-transform-define", { "process.env.BABEL_ENV": "coverage" } ], - "rewire" + "babel-plugin-rewire" ] } } |