-
Notifications
You must be signed in to change notification settings - Fork 126
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
Create ESM javascript build + docs #1445
Comments
Hello. Any rough ETA on this? |
unfortunately not at the moment, as things are pretty crazy! But we hope to start setting up our roadmap later this year so you will be able to track the tickets! |
@Ansett We were able to get something completed this week. You can take a look at #1855 for an example integration but in Vue 2 you would likely just do something along the lines of: data: {
scalarInstance: null,
configuration: {
// ... Some config here. When this changes the watcher will trigger and update the configuration
},
},
mounted() {
this.scalarInstance = createScalarReferences(
this.$refs.element,
this.configuration ?? {}
);
},
beforeDestroy() {
this.scalarInstance?.unmount();
},
watch: {
configuration: function (val) {
this.scalarInstance?.updateConfig(val, false);
},
} Excuse any syntax errors my Vue2 is very rusty. |
Wonderful! We're going to try this. Thanks a lot. |
A requested feature is to have a JS ESM version of references. This should be easy to do by creating a little wrapper around vue with an init function.
The text was updated successfully, but these errors were encountered: