Skip to content

Commit

Permalink
perf(runtime): makes nuxt-ts transpileOnly
Browse files Browse the repository at this point in the history
Closes #329
  • Loading branch information
kevinmarrec committed Apr 9, 2020
1 parent 629d618 commit 436f742
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/typescript-runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const hooks: Hooks = {
project: tsConfigPath,
compilerOptions: {
module: 'commonjs'
}
},
transpileOnly: true
})
},

Expand Down
9 changes: 6 additions & 3 deletions packages/typescript-runtime/test/hooks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ describe('run:before hook', () => {
project: path.resolve('path', 'tsconfig.json'),
compilerOptions: {
module: 'commonjs'
}
},
transpileOnly: true
})
})

Expand All @@ -28,7 +29,8 @@ describe('run:before hook', () => {
project: path.resolve('custom/tsconfig.json'),
compilerOptions: {
module: 'commonjs'
}
},
transpileOnly: true
})
})

Expand All @@ -39,7 +41,8 @@ describe('run:before hook', () => {
project: path.resolve('custom/tsconfig.json'),
compilerOptions: {
module: 'commonjs'
}
},
transpileOnly: true
})
})
})
Expand Down

0 comments on commit 436f742

Please sign in to comment.