Skip to content

Commit

Permalink
fix(nitro): import externals as esm namespace (#394)
Browse files Browse the repository at this point in the history
[workaround]
  • Loading branch information
danielroe authored Jul 28, 2021
1 parent 42405c2 commit 1b7f9af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ export const getRollupConfig = (nitroContext: NitroContext) => {

// https://github.com/rollup/plugins/tree/master/packages/commonjs
rollupConfig.plugins.push(commonjs({
esmExternals: id => !id.startsWith('unenv/'),
requireReturnsDefault: 'auto'
}))

Expand Down

0 comments on commit 1b7f9af

Please sign in to comment.