Merge pull request #254 from yoni-rapoport/master
Support subpath imports from externalized dependencies
This commit is contained in:
commit
8a774ef76d
|
@ -33,7 +33,7 @@ export function externalizeDepsPlugin(options: ExternalOptions = {}): Plugin | n
|
||||||
const defaultConfig = {
|
const defaultConfig = {
|
||||||
build: {
|
build: {
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: [...new Set(deps)]
|
external: [...new Set(deps.map(d => new RegExp(`^${d}\/?.*`)))]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue