Skip to content

Commit e85667c

Browse files
authored
Merge branch 'master' into strip-ts-extensions
2 parents af9a83d + 5f59b3b commit e85667c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ function createConfig(options, entry, format, writeMeta) {
532532
browser: options.target !== 'node',
533533
// defaults + .jsx
534534
extensions: ['.mjs', '.js', '.jsx', '.json', '.node'],
535+
preferBuiltins: options.target === 'node' ? true : undefined,
535536
}),
536537
commonjs({
537538
// use a regex to make sure to include eventual hoisted packages

0 commit comments

Comments
 (0)