From 72c8562cc9859106f89b12cca1016e5e1b2a8c78 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Sun, 14 May 2017 20:47:31 +0900 Subject: 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 --- package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 78d8213e4..f19fa8d14 100644 --- a/package.json +++ b/package.json @@ -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", -- cgit