Skip to content

Commit

Permalink
fix(modules): Add types from all wxt node_modules, not just ones with…
Browse files Browse the repository at this point in the history
… config (#817)
  • Loading branch information
aklinker1 authored Jul 9, 2024
1 parent d767f3f commit 82be31a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/wxt/src/core/utils/building/generate-wxt-dir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ export async function generateTypesDir(
// in <root>/modules are already apart of the project, so we don't need to
// add them.
wxt.config.userModules.forEach((module) => {
if (module.type === 'node_module' && module.configKey != null)
entries.push({ module: module.id });
if (module.type === 'node_module') entries.push({ module: module.id });
});

// browser.runtime.getURL
Expand Down

0 comments on commit 82be31a

Please sign in to comment.