Skip to content

Commit

Permalink
preferBuiltins: true for node, false for web
Browse files Browse the repository at this point in the history
I don't know why I had this as undefined. We never want to inline built-ins.
  • Loading branch information
developit committed May 6, 2020
1 parent 4cd4275 commit 078dbdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -537,7 +537,7 @@ function createConfig(options, entry, format, writeMeta) {
browser: options.target !== 'node',
// defaults + .jsx
extensions: ['.mjs', '.js', '.jsx', '.json', '.node'],
preferBuiltins: options.target === 'node' ? true : undefined,
preferBuiltins: options.target === 'node',
}),
commonjs({
// use a regex to make sure to include eventual hoisted packages
Expand Down

0 comments on commit 078dbdb

Please sign in to comment.