Skip to content

Commit

Permalink
fix: handle special case for webpack compilation
Browse files Browse the repository at this point in the history
close #1161
  • Loading branch information
johnsoncodehk committed Apr 10, 2022
1 parent d626e92 commit 79a227b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vue-code-gen/src/transform.ts
Expand Up @@ -19,7 +19,10 @@ export function walkInterpolationFragment(
const varCb = (id: ts.Identifier, isShorthand: boolean) => {
if (
!!localVars[id.text] ||
// https://github.com/vuejs/core/blob/245230e135152900189f13a4281302de45fdcfaa/packages/compiler-core/src/transforms/transformExpression.ts#L342-L352
isGloballyWhitelisted(id.text) ||
id.text === 'require' ||
// css module
id.text === '$style'
) {
// localVarOffsets.push(localVar.getStart(ast));
Expand Down

0 comments on commit 79a227b

Please sign in to comment.