From 12ba1e0eedf0bdd5f5cb5e12d4f5931fe4ca298d Mon Sep 17 00:00:00 2001 From: kaivean Date: Sat, 29 Oct 2022 21:48:41 +0800 Subject: [PATCH] fix: importing css file leads to error (#17) --- src/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.ts b/src/plugin.ts index 87cf36e..46875fb 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -91,7 +91,7 @@ export default class SanSSRLoaderPlugin { const reportError = (err: Error) => compilation.errors.push(err); compilation.hooks.finishModules.tapPromise(id, async () => { - const sanFiles = styleStore.getKeys(); + const sanFiles = templateStore.getKeys(); for (const filePath of sanFiles) { const sanFileContent = await readFile(filePath, 'utf-8'); const descriptor = parseComponent(sanFileContent);