fix(modules): Add types from all wxt node_modules, not just ones with config (#817)

This commit is contained in:
Aaron
2024-07-09 10:58:41 -05:00
committed by GitHub
parent d767f3f598
commit 82be31a408
@@ -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