mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +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'
|
process.env.NUXT_TS = 'true'
|
||||||
|
|
||||||
// https://github.com/TypeStrong/ts-node
|
// 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' : ''
|
const suffix = require('../package.json').name.includes('-edge') ? '-edge' : ''
|
||||||
require('@nuxt/cli' + suffix).run()
|
require('@nuxt/cli' + suffix).run()
|
||||||
|
Loading…
Reference in New Issue
Block a user