Skip to content

Commit

Permalink
fix(build): Pass allowNodeBuiltins to rollup instead of empty array (
Browse files Browse the repository at this point in the history
…Fixes #1392) (#1393)
  • Loading branch information
schickling committed Jan 6, 2021
1 parent c8f4bb9 commit f209ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/build.ts
Expand Up @@ -280,7 +280,7 @@ async function doBuild(
...options.rollupOptions,
plugins: config.plugins as Plugin[],
onwarn(warning, warn) {
onRollupWarning(warning, warn, [], options.rollupOptions?.onwarn)
onRollupWarning(warning, warn, config.optimizeDeps.allowNodeBuiltins, options.rollupOptions?.onwarn)
}
})

Expand Down

0 comments on commit f209ad9

Please sign in to comment.