Skip to content

Commit

Permalink
fix: importing css file leads to error (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaivean authored Oct 29, 2022
1 parent 4d64b0d commit 12ba1e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 12ba1e0

Please sign in to comment.