chore(nitro): opt in to makeAbsoluteExternalsRelative: 'ifRelativeSource'

This commit is contained in:
Pooya Parsa 2021-04-13 00:08:18 +02:00
parent f8cb2586cf
commit bf0132f3e1
1 changed files with 2 additions and 0 deletions

View File

@ -102,6 +102,8 @@ export const getRollupConfig = (nitroContext: NitroContext) => {
}
},
external: env.external,
// https://github.com/rollup/rollup/pull/4021#issuecomment-809985618
makeAbsoluteExternalsRelative: 'ifRelativeSource',
plugins: [],
onwarn (warning, rollupWarn) {
if (!['CIRCULAR_DEPENDENCY', 'EVAL'].includes(warning.code)) {