diff --git a/packages/cycle-scripts/configs/webpack.config.js b/packages/cycle-scripts/configs/webpack.config.js index 5a01a6b..e7e2017 100644 --- a/packages/cycle-scripts/configs/webpack.config.js +++ b/packages/cycle-scripts/configs/webpack.config.js @@ -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() ]) diff --git a/packages/cycle-scripts/package.json b/packages/cycle-scripts/package.json index 315e9f9..f6b237d 100644 --- a/packages/cycle-scripts/package.json +++ b/packages/cycle-scripts/package.json @@ -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",