This commit is contained in:
Jason Miller 2020-04-18 11:27:36 -04:00 committed by GitHub
parent 195451d930
commit e13ecddc45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -529,7 +529,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' ? true : undefined,
}),
commonjs({
// use a regex to make sure to include eventual hoisted packages