mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
fix(ts): set ts-node register compilerOptions.module to 'commonjs' (#4752)
This commit is contained in:
parent
085ff82591
commit
e22e14bba5
@ -4,7 +4,11 @@
|
||||
process.env.NUXT_TS = 'true'
|
||||
|
||||
// https://github.com/TypeStrong/ts-node
|
||||
require('ts-node').register()
|
||||
require('ts-node').register({
|
||||
compilerOptions: {
|
||||
module: 'commonjs'
|
||||
}
|
||||
})
|
||||
|
||||
const suffix = require('../package.json').name.includes('-edge') ? '-edge' : ''
|
||||
require('@nuxt/cli' + suffix).run()
|
||||
|
Loading…
Reference in New Issue
Block a user