We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
onwarn
1 parent 42b57c9 commit 3ca9849Copy full SHA for 3ca9849
src/index.ts
@@ -199,7 +199,13 @@ export const nodePolyfills = (options: PolyfillOptions = {}): Plugin => {
199
build: {
200
rollupOptions: {
201
onwarn: (warning, rollupWarn) => {
202
- handleCircularDependancyWarning(warning, config.build?.rollupOptions?.onwarn ?? rollupWarn)
+ handleCircularDependancyWarning(warning, () => {
203
+ if (config.build?.rollupOptions?.onwarn) {
204
+ return config.build.rollupOptions.onwarn(warning, rollupWarn)
205
+ }
206
+
207
+ rollupWarn(warning)
208
+ })
209
},
210
plugins: [
211
{
0 commit comments