chore: hide esbuild sourcemap warning

This commit is contained in:
Pooya Parsa 2021-04-20 15:22:42 +02:00
parent 0a74f1e239
commit fbe658ffc7

View File

@ -107,7 +107,10 @@ export const getRollupConfig = (nitroContext: NitroContext) => {
makeAbsoluteExternalsRelative: 'ifRelativeSource',
plugins: [],
onwarn (warning, rollupWarn) {
if (!['CIRCULAR_DEPENDENCY', 'EVAL'].includes(warning.code)) {
if (
!['CIRCULAR_DEPENDENCY', 'EVAL'].includes(warning.code) &&
!warning.message.includes('Unsupported source map comment')
) {
rollupWarn(warning)
}
}