Merge pull request #271 from FezVrasta/fix/hoisted-packages

fix: support hoisted packages
This commit is contained in:
Marvin Hagemeister 2018-12-11 16:08:49 +01:00 committed by GitHub
commit f459dc601e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,7 +356,8 @@ function createConfig(options, entry, format, writeMeta) {
browser: options.target !== 'node',
}),
commonjs({
include: 'node_modules/**',
// use a regex to make sure to include eventual hoisted packages
include: /\/node_modules\//,
}),
json(),
useTypescript &&