Skip to content

Commit c39a593

Browse files
committed
fix: use loader for non async components only
1 parent c36fd14 commit c39a593

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/loader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ export default async function loader (this: WebpackLoader.LoaderContext, content
2828
this.addDependency(this.resourcePath)
2929

3030
const { getComponents } = this.query
31+
const nonAsyncComponents = getComponents().filter((c: Component) => c.isAsync !== true)
3132

3233
const tags = await extractTags(this.resourcePath)
33-
const matchedComponents = matcher(tags, getComponents())
34+
const matchedComponents = matcher(tags, nonAsyncComponents)
3435

3536
if (matchedComponents.length) {
3637
content = install.call(this, content, matchedComponents)

0 commit comments

Comments
 (0)