We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
Learn more about funding links in repositories.
Report abuse
1 parent 79d3cc6 commit 2073236Copy full SHA for 2073236
packages/compiler-core/src/utils.ts
@@ -36,7 +36,7 @@ import {
36
GUARD_REACTIVE_PROPS,
37
WITH_MEMO
38
} from './runtimeHelpers'
39
-import { isString, isObject, extend, NOOP } from '@vue/shared'
+import { isString, isObject, NOOP } from '@vue/shared'
40
import { PropsExpression } from './transforms/transformElement'
41
import { parseExpression } from '@babel/parser'
42
import { Expression } from '@babel/types'
@@ -181,7 +181,11 @@ export function advancePositionWithClone(
181
numberOfCharacters: number = source.length
182
): Position {
183
return advancePositionWithMutation(
184
- extend({}, pos),
+ {
185
+ offset: pos.offset,
186
+ line: pos.line,
187
+ column: pos.column
188
+ },
189
source,
190
numberOfCharacters
191
)
0 commit comments