fix(ts): set ts-node register compilerOptions.module to 'commonjs' (#4752)

This commit is contained in:
Kevin Marrec 2019-01-12 23:36:22 +01:00 committed by Pooya Parsa
parent 085ff82591
commit e22e14bba5

View File

@ -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()