mirror of
https://github.com/LukeHagar/electron-vite.git
synced 2025-12-06 04:19:43 +00:00
Merge pull request #254 from yoni-rapoport/master
Support subpath imports from externalized dependencies
This commit is contained in:
@@ -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}\/?.*`)))]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user