Skip to content

Commit

Permalink
chore: ignore MODULE_LEVEL_DIRECTIVE warning
Browse files Browse the repository at this point in the history
"Module level directives cause errors when bundled" warnings
  • Loading branch information
nayounsang committed Oct 30, 2024
1 parent 3d5b814 commit 53114f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/bezier-react/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ const generateConfig = ({ output = [], plugins = [] }) =>
minifycss(),
...plugins,
],
onwarn(warning, warn) {
// Suppress "Module level directives cause errors when bundled" warnings
if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {
return
}
warn(warning)
},
})

export default defineConfig([
Expand Down

0 comments on commit 53114f2

Please sign in to comment.