Skip to content

Commit

Permalink
improvement(ts): transpileOnly when using nuxt-ts start (#4906)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmarrec authored and pooya parsa committed Feb 7, 2019
1 parent dbf7099 commit 17cc12f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/typescript/src/index.js
Expand Up @@ -47,6 +47,7 @@ export async function setup(tsConfigPath) {
project: tsConfigPath,
compilerOptions: {
module: 'commonjs'
}
},
transpileOnly: process.argv[2] === 'start'
})
}
3 changes: 2 additions & 1 deletion packages/typescript/test/setup.test.js
Expand Up @@ -38,7 +38,8 @@ describe('typescript setup', () => {
project: tsConfigPath,
compilerOptions: {
module: 'commonjs'
}
},
transpileOnly: false
})
})

Expand Down

0 comments on commit 17cc12f

Please sign in to comment.