Skip to content

Use render function instead of template for compatibility with runtime-only build of Vue. #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 10, 2016

Conversation

davidwallacejackson
Copy link
Contributor

Right now, if you run vue-highcharts in the runtime-only build of Vue (which seems to be the default, at least in a vue-cli project) it raises an error saying that the template option is unsupported if you're using a build without the template compiler included.

Since the template just created a container <div>, I figured it would be easy enough to just swap it with a trivial render function. I've tried installing this build in my project, and it seems to work -- the tests also pass.

@weizhenye
Copy link
Owner

Thanks for your PR.

@weizhenye weizhenye merged commit dfa83b1 into weizhenye:master Nov 10, 2016
@weizhenye
Copy link
Owner

Oh, I just realized that Vue 1.x doesn't support render function.

weizhenye added a commit that referenced this pull request Nov 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants