mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-05-25 22:49:15 +08:00
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 = {
|
||||
build: {
|
||||
rollupOptions: {
|
||||
external: [...new Set(deps)]
|
||||
external: [...new Set(deps.map(d => new RegExp(`^${d}\/?.*`)))]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user