bavel plugin for dynamic imports, frontend test & coverage collection working fine

This commit is contained in:
Ulf Gebhardt 2019-05-08 20:40:03 +02:00
parent 28c44f2781
commit 9d7a9fd3de
No known key found for this signature in database
GPG Key ID: 44C888923CC8E7F3
2 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,7 @@
{
"plugins": [
"@babel/plugin-syntax-dynamic-import"
],
"presets": [
[
"@babel/preset-env",
@ -21,4 +24,4 @@
]
}
}
}
}

View File

@ -31,12 +31,17 @@
".*\\.(vue)$": "vue-jest",
"^.+\\.js$": "<rootDir>/node_modules/babel-jest"
},
"moduleFileExtensions": [
"js",
"json",
"vue"
],
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1",
"^~/(.*)$": "<rootDir>/$1"
},
"testMatch": [
"**/?(*.).spec.js"
"**/?(*.)+(spec|test).js?(x)"
]
},
"dependencies": {
@ -69,6 +74,7 @@
},
"devDependencies": {
"@babel/core": "~7.4.4",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "~7.4.4",
"@vue/cli-shared-utils": "~3.7.0",
"@vue/eslint-config-prettier": "~4.0.1",
@ -92,4 +98,4 @@
"vue-jest": "~3.0.4",
"vue-svg-loader": "~0.12.0"
}
}
}