Skip to content

Build your personal knowledge base with Trilium Notes

fix(share): look up the lazy groups' importers by normalized path

Elian Doran72add2c933fb
diff --git a/apps/client/vite-plugins.mts b/apps/client/vite-plugins.mts
index bbe52fb8e8..70a5845670 100644
--- a/apps/client/vite-plugins.mts
+++ b/apps/client/vite-plugins.mts
@@ -356,7 +356,7 @@ async function emitShareTheme(
};
for (const [ name, importers ] of Object.entries(LAZY_IMPORTERS)) {
groups.shared[name] = importers.flatMap((importer) => {
- const info = context.getModuleInfo(importer);
+ const info = context.getModuleInfo(normalizePath(importer));
if (!info) {
throw new Error(`The share theme's '${name}' group names ${importer}, `
+ "which the build does not include.");