mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
Merge pull request #271 from FezVrasta/fix/hoisted-packages
fix: support hoisted packages
This commit is contained in:
commit
f459dc601e
@ -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 &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user