mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
chore: hide esbuild sourcemap warning
This commit is contained in:
parent
0a74f1e239
commit
fbe658ffc7
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user