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:webpack": "webpack --config webpack.prod.js",
|
||||||
"build:prerender": "node ./script/__build__/prerender.js",
|
"build:prerender": "node ./script/__build__/prerender.js",
|
||||||
"test": "run-s test:lint 'test:unit --coverage'",
|
"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:lint": "eslint --ignore-path .gitignore .",
|
||||||
"test:watch": "yarn test:unit --watch",
|
"test:watch": "yarn test:unit --watch",
|
||||||
"i18n:scrub": "node ./script/i18n-scrub.js",
|
"i18n:scrub": "node ./script/i18n-scrub.js",
|
||||||
@ -30,12 +30,7 @@
|
|||||||
],
|
],
|
||||||
"babel": {
|
"babel": {
|
||||||
"presets": [
|
"presets": [
|
||||||
[
|
"env",
|
||||||
"env",
|
|
||||||
{
|
|
||||||
"modules": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"react"
|
"react"
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
@ -44,27 +39,7 @@
|
|||||||
"transform-object-rest-spread",
|
"transform-object-rest-spread",
|
||||||
"transform-decorators-legacy",
|
"transform-decorators-legacy",
|
||||||
"syntax-dynamic-import"
|
"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": {
|
"postcss": {
|
||||||
"plugins": {
|
"plugins": {
|
||||||
|
Loading…
Reference in New Issue
Block a user