Skip to content

Commit

Permalink
fix: de-default the jiti import
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 15, 2021
1 parent 184c853 commit bce0a26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ let nuxtConfig
// Load Config
try {
const load = require('jiti')()
nuxtConfig = load('__NUXT_CONFIG__')
const config = load('__NUXT_CONFIG__').default
nuxtConfig = config.default || config
} catch {
const esm = require('esm')(module, {
cjs: {
Expand Down

0 comments on commit bce0a26

Please sign in to comment.