Use babel-preset-env on Streaming Server (#2998)
* Use babel-preset-env on Streaming Server Change the streaming server to use babel-preset-env as well as asset compilation. This shortens the load time at first boot. * remove babel-plugin-lodash
... | ... | @@ -6,7 +6,7 @@ |
"build:development": "NODE_ENV=development yarn webpack -- --config config/webpack/development.js", | ||
"build:production": "NODE_ENV=production yarn webpack -- --config config/webpack/production.js", | ||
"manage:translations": "node ./config/webpack/translationRunner.js", | ||
"start": "babel-node ./streaming/index.js --presets es2015,stage-2", | ||
"start": "babel-node ./streaming/index.js", | ||
"storybook": "start-storybook -p 9001 -c storybook", | ||
"test": "npm run test:lint && npm run test:mocha", | ||
"test:lint": "eslint -c .eslintrc.yml --ext=js --ext=jsx app/javascript/", | ||
... | ... | @@ -34,9 +34,7 @@ |
"babel-plugin-transform-react-jsx-self": "^6.22.0", | ||
"babel-plugin-transform-react-jsx-source": "^6.22.0", | ||
"babel-preset-env": "^1.4.0", | ||
"babel-preset-es2015": "^6.22.0", | ||
"babel-preset-react": "^6.11.1", | ||
"babel-preset-stage-2": "^6.22.0", | ||
"coffee-loader": "^0.7.3", | ||
"coffee-script": "^1.12.5", | ||
"compression-webpack-plugin": "^0.4.0", | ||
... | ... |
streaming/.babelrc
0 → 100644
Please register or sign in to comment