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

View File

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