Skip to content

Commit

Permalink
fix: should check for type query for render function imports
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Nov 5, 2020
1 parent b2d7ffb commit 41af4b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pluginWebpack5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ const langBlockRuleResource = (
): string => `${resource}.${query.lang}`

const jsRuleCheck = (query: qs.ParsedUrlQuery): boolean => {
return query.lang === 'template'
return query.type === 'template'
}

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

0 comments on commit 41af4b6

Please sign in to comment.