Skip to content

Commit

Permalink
Add babel config to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanbruegge committed Apr 15, 2017
1 parent 714d9dc commit b2b9e2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/cycle-scripts/configs/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ module.exports = function(language) {

const config = language === 'javascript' ? baseConfig : baseConfig
.concat([
typescript(),
typescript({
useBabel: true,
babelOptions: baseConfig,
useCache: true,
cacheDirectory: 'node_modules/.cache/at-loader'
}),
tslint()
])

Expand Down
2 changes: 1 addition & 1 deletion packages/cycle-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@webpack-blocks/babel6": "^0.4.1",
"@webpack-blocks/dev-server2": "^0.4.0",
"@webpack-blocks/tslint": "^0.4.0",
"@webpack-blocks/typescript": "^0.4.0",
"@webpack-blocks/typescript": "^0.4.1",
"@webpack-blocks/webpack2": "^0.4.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
Expand Down

0 comments on commit b2b9e2f

Please sign in to comment.