Skip to content

Commit

Permalink
fix: Externalize app config during dependency optimization (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 authored Jul 21, 2024
1 parent 88a1244 commit 069bd6c
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 069bd6c

Please sign in to comment.