mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Upgrade to babel6
This commit is contained in:
parent
959c5402de
commit
9b70488b7f
27
.babelrc
Normal file
27
.babelrc
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
'presets': ['react', 'es2015-no-commonjs'],
|
||||||
|
'plugins': [
|
||||||
|
'transform-object-assign',
|
||||||
|
'transform-object-rest-spread',
|
||||||
|
'transform-react-display-name',
|
||||||
|
[ 'transform-runtime', {
|
||||||
|
'polyfill': false,
|
||||||
|
'regenerator': false
|
||||||
|
} ]
|
||||||
|
],
|
||||||
|
'sourceMaps': true,
|
||||||
|
|
||||||
|
'env': {
|
||||||
|
'demo': {
|
||||||
|
'plugins': [
|
||||||
|
[ 'react-transform', {
|
||||||
|
'transforms': [{
|
||||||
|
'transform': 'react-transform-hmr',
|
||||||
|
'imports': ['react'],
|
||||||
|
'locals': ['module']
|
||||||
|
}]
|
||||||
|
} ]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
package.json
11
package.json
@ -51,7 +51,15 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"alt": "^0.16.5",
|
"alt": "^0.16.5",
|
||||||
"audiojs": "vrde/audiojs",
|
"audiojs": "vrde/audiojs",
|
||||||
"babel": "^5.6.14",
|
"babel-cli": "^6.9.0",
|
||||||
|
"babel-loader": "^6.2.4",
|
||||||
|
"babel-plugin-react-transform": "^2.0.2",
|
||||||
|
"babel-plugin-transform-object-assign": "^6.8.0",
|
||||||
|
"babel-plugin-transform-object-rest-spread": "^6.8.0",
|
||||||
|
"babel-plugin-transform-react-display-name": "^6.8.0",
|
||||||
|
"babel-plugin-transform-runtime": "^6.9.0",
|
||||||
|
"babel-preset-es2015-no-commonjs": "0.0.2",
|
||||||
|
"babel-preset-react": "^6.5.0",
|
||||||
"bootstrap-sass": "^3.3.4",
|
"bootstrap-sass": "^3.3.4",
|
||||||
"camelcase": "^1.2.1",
|
"camelcase": "^1.2.1",
|
||||||
"classlist-polyfill": "^1.0.2",
|
"classlist-polyfill": "^1.0.2",
|
||||||
@ -75,6 +83,7 @@
|
|||||||
"react-router-bootstrap": "^0.19.0",
|
"react-router-bootstrap": "^0.19.0",
|
||||||
"react-star-rating": "~1.3.2",
|
"react-star-rating": "~1.3.2",
|
||||||
"react-textarea-autosize": "^2.5.2",
|
"react-textarea-autosize": "^2.5.2",
|
||||||
|
"react-transform-hmr": "^1.0.4",
|
||||||
"shallow-equals": "0.0.0",
|
"shallow-equals": "0.0.0",
|
||||||
"shmui": "^0.1.0",
|
"shmui": "^0.1.0",
|
||||||
"spark-md5": "~1.0.0"
|
"spark-md5": "~1.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user