Skip to content

Commit 41af4b6

Browse files
committed
fix: should check for type query for render function imports
1 parent b2d7ffb commit 41af4b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pluginWebpack5.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ const langBlockRuleResource = (
236236
): string => `${resource}.${query.lang}`
237237

238238
const jsRuleCheck = (query: qs.ParsedUrlQuery): boolean => {
239-
return query.lang === 'template'
239+
return query.type === 'template'
240240
}
241241

242242
const jsRuleResource = (query: qs.ParsedUrlQuery, resource: string): string =>

0 commit comments

Comments
 (0)