-
- Téléchargements
Remove Babel plugin for ES Modules (#2975)
* Remove Babel plugin for ES Modules Processing of ES Modules is executed by Webpack. Don't have to do it on Babel side. * Add plugin for test
parent
bc1a91f4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
"storybook": "start-storybook -p 9001 -c storybook", | "storybook": "start-storybook -p 9001 -c storybook", | ||
"test": "npm run test:lint && npm run test:mocha", | "test": "npm run test:lint && npm run test:mocha", | ||
"test:lint": "eslint -c .eslintrc.yml --ext=js --ext=jsx app/javascript/", | "test:lint": "eslint -c .eslintrc.yml --ext=js --ext=jsx app/javascript/", | ||
"test:mocha": "mocha --require ./spec/javascript/setup.js --compilers js:babel-register ./spec/javascript/components/*.test.jsx", | "test:mocha": "NODE_ENV=test mocha --require ./spec/javascript/setup.js --compilers js:babel-register ./spec/javascript/components/*.test.jsx", | ||
"postinstall": "npm rebuild node-sass" | "postinstall": "npm rebuild node-sass" | ||
}, | }, | ||
"repository": { | "repository": { | ||
... | @@ -29,6 +29,7 @@ | ... | @@ -29,6 +29,7 @@ |
"babel-plugin-react-transform": "^2.0.2", | "babel-plugin-react-transform": "^2.0.2", | ||
"babel-plugin-syntax-dynamic-import": "^6.18.0", | "babel-plugin-syntax-dynamic-import": "^6.18.0", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | "babel-plugin-transform-class-properties": "^6.24.1", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", | |||
"babel-plugin-transform-object-rest-spread": "^6.23.0", | "babel-plugin-transform-object-rest-spread": "^6.23.0", | ||
"babel-plugin-transform-react-jsx-self": "^6.22.0", | "babel-plugin-transform-react-jsx-self": "^6.22.0", | ||
"babel-plugin-transform-react-jsx-source": "^6.22.0", | "babel-plugin-transform-react-jsx-source": "^6.22.0", | ||
... | ... |
Veuillez vous inscrire ou vous se connecter pour commenter