Skip to content

Commit 078dbdb

Browse files
authored
preferBuiltins: true for node, false for web
I don't know why I had this as undefined. We never want to inline built-ins.
1 parent 4cd4275 commit 078dbdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ function createConfig(options, entry, format, writeMeta) {
537537
browser: options.target !== 'node',
538538
// defaults + .jsx
539539
extensions: ['.mjs', '.js', '.jsx', '.json', '.node'],
540-
preferBuiltins: options.target === 'node' ? true : undefined,
540+
preferBuiltins: options.target === 'node',
541541
}),
542542
commonjs({
543543
// use a regex to make sure to include eventual hoisted packages

0 commit comments

Comments
 (0)