mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
parent
f028719e7a
commit
c9ed8bc341
@ -274,6 +274,7 @@ export const getRollupConfig = (nitroContext: NitroContext) => {
|
|||||||
|
|
||||||
// https://github.com/rollup/plugins/tree/master/packages/commonjs
|
// https://github.com/rollup/plugins/tree/master/packages/commonjs
|
||||||
rollupConfig.plugins.push(commonjs({
|
rollupConfig.plugins.push(commonjs({
|
||||||
|
esmExternals: id => !id.startsWith('unenv/'),
|
||||||
requireReturnsDefault: 'auto'
|
requireReturnsDefault: 'auto'
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user