Switching to babel preset-env
This commit is contained in:
Родитель
73790ffeda
Коммит
3cbdaa5032
|
@ -34,8 +34,7 @@
|
|||
"devDependencies": {
|
||||
"babel-cli": "^6.18.0",
|
||||
"babel-polyfill": "^6.16.0",
|
||||
"babel-preset-es2015": "^6.18.0",
|
||||
"babel-preset-latest": "^6.16.0",
|
||||
"babel-preset-env": "^1.6.1",
|
||||
"babel-preset-react": "^6.16.0",
|
||||
"babel-preset-stage-2": "^6.18.0",
|
||||
"babelify": "^7.3.0",
|
||||
|
@ -44,8 +43,8 @@
|
|||
"redux-devtools": "^3.3.1"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "browserify -t [babelify --presets ['latest' 'react' 'babel-polyfill' 'stage-2'] ] client-src/root.js -o lib/root.js",
|
||||
"postinstall": "browserify -t [babelify --presets ['latest' 'react' 'babel-polyfill' 'stage-2'] ] client-src/root.js -o lib/root.js",
|
||||
"build": "browserify -t [babelify --presets ['env' 'react' 'babel-polyfill' 'stage-2'] ] client-src/root.js -o lib/root.js",
|
||||
"postinstall": "browserify -t [babelify --presets ['env' 'react' 'babel-polyfill' 'stage-2'] ] client-src/root.js -o lib/root.js",
|
||||
"start": "node app.js",
|
||||
"test": "mocha test"
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче