Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-10-02 09:09:58 +0300
committerMike Greiling <mike@pixelcog.com>2018-10-02 22:58:20 +0300
commit6553348aff043870bd5449cd22a3dc5a4e869de3 (patch)
treed6fd0b7ec527b27a37e49e4feb49d69155b4db13 /.babelrc
parent0ef1060e14b8ac09159e466fe5f4ca3195e080c2 (diff)
Upgrade to babel 7
Diffstat (limited to '.babelrc')
-rw-r--r--.babelrc26
1 files changed, 21 insertions, 5 deletions
diff --git a/.babelrc b/.babelrc
index 50d85f58d69..72a81d08dbc 100644
--- a/.babelrc
+++ b/.babelrc
@@ -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"
]
}
}