Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Mark transpiled render functions with _withStripped #44

Closed
yyx990803 opened this issue Dec 15, 2016 · 0 comments
Closed

Mark transpiled render functions with _withStripped #44

yyx990803 opened this issue Dec 15, 2016 · 0 comments
Assignees

Comments

@yyx990803
Copy link
Member

This is an internal flag that allows Vue's runtime to pick the correct Proxy strategy to detect variable reference errors during render, depending on whether with has been stripped by vue-template-es2015-compiler.

The same is done in vue-loader: https://github.com/vuejs/vue-loader/blob/master/lib/template-compiler.js#L83

A bit hacky, but luckily that there are not many tools that actually need to be aware of this flag.

Great work on this plugin, btw!

@znck znck self-assigned this Dec 16, 2016
znck added a commit that referenced this issue Dec 16, 2016
Mark transpiled render functions with `_withStripped`
Fixes #44
@znck znck closed this as completed in b912ba4 Dec 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants