feat: v-once

Note: only compiler transform is tested - integration with runtime
still needs to be tested.
This commit is contained in:
Evan You
2019-10-09 17:32:58 -04:00
parent 5dfb271551
commit 93c6aa4c90
7 changed files with 63 additions and 13 deletions

View File

@@ -63,7 +63,7 @@ export const walkJS: typeof walk = (ast, walker) => {
}
export const isSimpleIdentifier = (name: string): boolean =>
!/^\d|[^\w]/.test(name)
!/^\d|[^\$\w]/.test(name)
export function getInnerRange(
loc: SourceLocation,