Skip to content

Commit

Permalink
Merge pull request #603 from developit/preferbuiltins-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed May 6, 2020
2 parents 4cd4275 + 078dbdb commit 5521881
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 5521881

Please sign in to comment.