refactor: useWith -> prefixIdentifiers
This commit is contained in:
@@ -87,7 +87,7 @@ function parseForExpression(
|
||||
RHS.trim(),
|
||||
source.indexOf(RHS, LHS.length),
|
||||
context,
|
||||
!context.useWith
|
||||
context.prefixIdentifiers
|
||||
),
|
||||
value: undefined,
|
||||
key: undefined,
|
||||
|
||||
@@ -15,7 +15,7 @@ import { processExpression } from './expression'
|
||||
export const transformIf = createStructuralDirectiveTransform(
|
||||
/^(if|else|else-if)$/,
|
||||
(node, dir, context) => {
|
||||
if (!__BROWSER__ && !context.useWith && dir.exp) {
|
||||
if (!__BROWSER__ && context.prefixIdentifiers && dir.exp) {
|
||||
processExpression(dir.exp, context)
|
||||
}
|
||||
if (dir.name === 'if') {
|
||||
|
||||
Reference in New Issue
Block a user