Merge pull request #254 from yoni-rapoport/master

Support subpath imports from externalized dependencies
This commit is contained in:
alex.wei
2023-08-17 23:58:43 +08:00
committed by GitHub

View File

@@ -33,7 +33,7 @@ export function externalizeDepsPlugin(options: ExternalOptions = {}): Plugin | n
const defaultConfig = {
build: {
rollupOptions: {
external: [...new Set(deps)]
external: [...new Set(deps.map(d => new RegExp(`^${d}\/?.*`)))]
}
}
}