mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-17 01:17:29 +02:00
add support for decorators via babel
This commit is contained in:
parent
1d2980940f
commit
4d5c901807
@ -1,5 +1,6 @@
|
||||
{
|
||||
"presets": ["react", "es2015", "stage-2"],
|
||||
"plugins": ["transform-decorators-legacy"],
|
||||
"env": {
|
||||
"development": {
|
||||
"presets": ["react-hmre"]
|
||||
|
@ -54,6 +54,7 @@
|
||||
"babel-core": "^6.14.0",
|
||||
"babel-eslint": "^7.1.0",
|
||||
"babel-loader": "^6.2.5",
|
||||
"babel-plugin-transform-decorators-legacy": "^1.3.4",
|
||||
"babel-preset-es2015": "^6.14.0",
|
||||
"babel-preset-react": "^6.11.1",
|
||||
"babel-preset-react-hmre": "^1.1.1",
|
||||
|
5
frontend/src/jsconfig.json
Normal file
5
frontend/src/jsconfig.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"experimentalDecorators": true
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user