Skip to content

Commit 8e61556

Browse files
committed
build(Template Literals): Add babel transformer to let the build support template literals (multilin
#167
1 parent a156a8f commit 8e61556

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"plugins": [
1414
"@babel/plugin-proposal-class-properties",
1515
"@babel/plugin-transform-async-to-generator",
16-
"@babel/plugin-transform-runtime"
16+
"@babel/plugin-transform-runtime",
17+
"@babel/plugin-transform-template-literals"
1718
]
1819
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@
5151
"uuid": "^3.3.2"
5252
},
5353
"devDependencies": {
54-
"@babel/plugin-proposal-class-properties": "^7.1.0",
55-
"babel-loader": "^8.0.4",
5654
"@babel/cli": "7.1.2",
5755
"@babel/core": "^7.1.2",
56+
"@babel/plugin-proposal-class-properties": "^7.1.0",
5857
"@babel/plugin-transform-async-to-generator": "7.1.0",
5958
"@babel/plugin-transform-runtime": "7.1.0",
59+
"@babel/plugin-transform-template-literals": "^7.2.0",
6060
"@babel/preset-env": "7.1.0",
6161
"@babel/preset-react": " 7.0.0",
6262
"@storybook/addon-info": "4.1.3",
@@ -69,6 +69,7 @@
6969
"babel-core": "^7.0.0-0",
7070
"babel-eslint": "^10.0.1",
7171
"babel-jest": "^23.6.0",
72+
"babel-loader": "^8.0.4",
7273
"chai": "^4.2.0",
7374
"chai-enzyme": "^1.0.0-beta.1",
7475
"codecov.io": "^0.1.6",

0 commit comments

Comments
 (0)