improvement(ts): transpileOnly when using nuxt-ts start (#4906)

This commit is contained in:
Kevin Marrec 2019-02-01 14:05:03 +01:00 committed by pooya parsa
parent dbf70999e4
commit 17cc12f005
2 changed files with 4 additions and 2 deletions

View File

@ -47,6 +47,7 @@ export async function setup(tsConfigPath) {
project: tsConfigPath, project: tsConfigPath,
compilerOptions: { compilerOptions: {
module: 'commonjs' module: 'commonjs'
} },
transpileOnly: process.argv[2] === 'start'
}) })
} }

View File

@ -38,7 +38,8 @@ describe('typescript setup', () => {
project: tsConfigPath, project: tsConfigPath,
compilerOptions: { compilerOptions: {
module: 'commonjs' module: 'commonjs'
} },
transpileOnly: false
}) })
}) })