Using modules in babel
Switching back to running tests in production environment
This commit is contained in:
parent
2dd2132a2b
commit
50d05c423d
31
package.json
31
package.json
@ -17,7 +17,7 @@
|
||||
"build:webpack": "webpack --config webpack.prod.js",
|
||||
"build:prerender": "node ./script/__build__/prerender.js",
|
||||
"test": "run-s test:lint 'test:unit --coverage'",
|
||||
"test:unit": "jest",
|
||||
"test:unit": "cross-env NODE_ENV=production jest",
|
||||
"test:lint": "eslint --ignore-path .gitignore .",
|
||||
"test:watch": "yarn test:unit --watch",
|
||||
"i18n:scrub": "node ./script/i18n-scrub.js",
|
||||
@ -30,12 +30,7 @@
|
||||
],
|
||||
"babel": {
|
||||
"presets": [
|
||||
[
|
||||
"env",
|
||||
{
|
||||
"modules": false
|
||||
}
|
||||
],
|
||||
"env",
|
||||
"react"
|
||||
],
|
||||
"plugins": [
|
||||
@ -44,27 +39,7 @@
|
||||
"transform-object-rest-spread",
|
||||
"transform-decorators-legacy",
|
||||
"syntax-dynamic-import"
|
||||
],
|
||||
"env": {
|
||||
"test": {
|
||||
"presets": [
|
||||
[
|
||||
"env",
|
||||
{
|
||||
"modules": "commonjs"
|
||||
}
|
||||
],
|
||||
"react"
|
||||
],
|
||||
"plugins": [
|
||||
"transform-runtime",
|
||||
"transform-class-properties",
|
||||
"transform-object-rest-spread",
|
||||
"transform-decorators-legacy",
|
||||
"syntax-dynamic-import"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"postcss": {
|
||||
"plugins": {
|
||||
|
Loading…
Reference in New Issue
Block a user