Skip to content

Commit

Permalink
fix(ts): set ts-node register compilerOptions.module to 'commonjs' (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmarrec authored and pi0 committed Jan 12, 2019
1 parent 085ff82 commit e22e14b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion distributions/nuxt-ts/bin/nuxt-ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit e22e14b

Please sign in to comment.