Skip to content

Commit

Permalink
chore: hide esbuild sourcemap warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 20, 2021
1 parent 0a74f1e commit fbe658f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/nitro/src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit fbe658f

Please sign in to comment.