Skip to content

Commit

Permalink
chore: Silence warnings when using builtins w/ 'node:' protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed May 4, 2022
1 parent 6c59174 commit 8683aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ function createConfig(options, entry, format, writeMeta) {
// We want to silence rollup warnings for node builtins as we rollup-node-resolve threats them as externals anyway
// @see https://github.com/rollup/plugins/tree/master/packages/node-resolve/#resolving-built-ins-like-fs
if (options.target === 'node') {
external = external.concat(builtinModules);
external = [/node:.*/].concat(builtinModules);
}

const peerDeps = Object.keys(pkg.peerDependencies || {});
Expand Down

0 comments on commit 8683aca

Please sign in to comment.