fix: Externalize app config during dependency optimization (#833)
This commit is contained in:
@@ -13,6 +13,15 @@ export function resolveAppConfig(config: ResolvedConfig): vite.Plugin {
|
||||
|
||||
return {
|
||||
name: 'wxt:resolve-app-config',
|
||||
config() {
|
||||
return {
|
||||
optimizeDeps: {
|
||||
// Prevent ESBuild from attempting to resolve the virtual module
|
||||
// while optimizing WXT.
|
||||
exclude: [virtualModuleId],
|
||||
},
|
||||
};
|
||||
},
|
||||
async resolveId(id) {
|
||||
if (id !== virtualModuleId) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user