We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents af9a83d + 5f59b3b commit e85667cCopy full SHA for e85667c
1 file changed
src/index.js
@@ -532,6 +532,7 @@ function createConfig(options, entry, format, writeMeta) {
532
browser: options.target !== 'node',
533
// defaults + .jsx
534
extensions: ['.mjs', '.js', '.jsx', '.json', '.node'],
535
+ preferBuiltins: options.target === 'node' ? true : undefined,
536
}),
537
commonjs({
538
// use a regex to make sure to include eventual hoisted packages
0 commit comments