Skip to content

Commit b2b9e2f

Browse files
committed
Add babel config to typescript
1 parent 714d9dc commit b2b9e2f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/cycle-scripts/configs/webpack.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ module.exports = function(language) {
8484

8585
const config = language === 'javascript' ? baseConfig : baseConfig
8686
.concat([
87-
typescript(),
87+
typescript({
88+
useBabel: true,
89+
babelOptions: baseConfig,
90+
useCache: true,
91+
cacheDirectory: 'node_modules/.cache/at-loader'
92+
}),
8893
tslint()
8994
])
9095

packages/cycle-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@webpack-blocks/babel6": "^0.4.1",
3434
"@webpack-blocks/dev-server2": "^0.4.0",
3535
"@webpack-blocks/tslint": "^0.4.0",
36-
"@webpack-blocks/typescript": "^0.4.0",
36+
"@webpack-blocks/typescript": "^0.4.1",
3737
"@webpack-blocks/webpack2": "^0.4.0",
3838
"babel-plugin-transform-object-rest-spread": "^6.23.0",
3939
"babel-plugin-transform-react-jsx": "^6.24.1",

0 commit comments

Comments
 (0)