Skip to content

Commit

Permalink
Fix useBabel use option in razzzle-plugin-typescript (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgriesser authored and jaredpalmer committed Jun 6, 2018
1 parent bdeb1d1 commit 3c24927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/razzle-plugin-typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function modify(baseConfig, { target, dev }, webpack, userOptions = {}) {
if (options.useBabel) {
// If using babel, also add babel-loader to ts files,
// so we can use babel plugins on tsx files too
tsLoader.use = [babelLoader.use[1], ...tsLoader.use];
tsLoader.use = [...babelLoader.use, ...tsLoader.use];
} else {
// If not using babel, remove it
config.module.rules = config.module.rules.filter(
Expand Down

0 comments on commit 3c24927

Please sign in to comment.