Upgrade to babel 7

This commit is contained in:
Mike Greiling 2018-10-02 01:09:58 -05:00
parent 0ef1060e14
commit 6553348aff
No known key found for this signature in database
GPG Key ID: 0303DF507FA67596
3 changed files with 713 additions and 748 deletions

View File

@ -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"
]
}
}

View File

@ -18,15 +18,18 @@
"webpack-prod": "NODE_ENV=production webpack --config config/webpack.config.js"
},
"dependencies": {
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@gitlab-org/gitlab-svgs": "^1.29.0",
"@gitlab-org/gitlab-ui": "^1.7.1",
"autosize": "^4.0.0",
"axios": "^0.17.1",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.5",
"babel-loader": "^8.0.4",
"babel-plugin-transform-define": "^1.3.0",
"babel-preset-latest": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"blackst0ne-mermaid": "^7.1.0-fixed",
"bootstrap": "4.1.1",
"brace-expansion": "^1.1.8",
@ -111,7 +114,7 @@
"devDependencies": {
"axios-mock-adapter": "^1.15.0",
"babel-eslint": "^9.0.0",
"babel-plugin-istanbul": "^5.0.1",
"babel-plugin-istanbul": "^5.1.0",
"babel-plugin-rewire": "^1.2.0",
"babel-template": "^6.26.0",
"babel-types": "^6.26.0",
@ -135,7 +138,7 @@
"jasmine-jquery": "^2.1.1",
"karma": "^3.0.0",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage-istanbul-reporter": "^1.4.2",
"karma-coverage-istanbul-reporter": "^2.0.4",
"karma-jasmine": "^1.1.2",
"karma-junit-reporter": "^1.2.0",
"karma-mocha-reporter": "^2.2.5",

1420
yarn.lock

File diff suppressed because it is too large Load Diff