Skip to content

Commit

Permalink
fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
wagerfield committed May 28, 2018
1 parent caeceae commit 9ec83a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ module.exports = function NuxtTypeScript(moduleOptions) {
// Add ts and tsx loaders to vue-loader
for (const rule of config.module.rules) {
if (rule.loader === "vue-loader") {
rule.options.loaders = rule.options.loaders || {}
rule.options.loaders.ts = [babelLoader(), tsLoader()]
rule.options.loaders.tsx = [babelLoader(), tsLoader()]
}
Expand Down

0 comments on commit 9ec83a0

Please sign in to comment.