mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
improvement(ts): transpileOnly when using nuxt-ts start
(#4906)
This commit is contained in:
parent
0223e56dd4
commit
d7b57e0d97
@ -47,6 +47,7 @@ export async function setup(tsConfigPath) {
|
|||||||
project: tsConfigPath,
|
project: tsConfigPath,
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
module: 'commonjs'
|
module: 'commonjs'
|
||||||
}
|
},
|
||||||
|
transpileOnly: process.argv[2] === 'start'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,8 @@ describe('typescript setup', () => {
|
|||||||
project: tsConfigPath,
|
project: tsConfigPath,
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
module: 'commonjs'
|
module: 'commonjs'
|
||||||
}
|
},
|
||||||
|
transpileOnly: false
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user