We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there a way to reduce this wrapper size by only importing the needed dependencies or bundles?
such as Plotly Basic
EDIT: Managed to implement it by directly editing the wrapper. At Plotly.vue changed import Plotly from 'plotly.js' to
import Plotly from 'plotly.js'
import Plotly from 'plotly.js-basic-dist'
and at vue-plotly.js changed every reference to plotly.js to plotly.js-basic-dist
plotly.js
plotly.js-basic-dist
but I think there should be a correct way to implement this feature.
The text was updated successfully, but these errors were encountered:
It would be nice yes, not sure how to implement it though...
Maybe build several bundles, each containing different plotly bundles.
Any help is welcomed.
Sorry, something went wrong.
plotly.js is used as external in vue-plotly. If you use vue-plotly in a project your own bundler is looking for plotly.js.
So you can configure to resove plotly.js as you want in your own project. For example with webpack you can do:
webpack.config.js:
resolve: { alias: { 'plotly.js': 'plotly.js/dist/plotly-basic.js' }
No branches or pull requests
Is there a way to reduce this wrapper size by only importing the needed dependencies or bundles?
such as Plotly Basic
EDIT: Managed to implement it by directly editing the wrapper.
At Plotly.vue changed
import Plotly from 'plotly.js'
to
import Plotly from 'plotly.js-basic-dist'
and at vue-plotly.js changed every reference to
plotly.js
toplotly.js-basic-dist
but I think there should be a correct way to implement this feature.
The text was updated successfully, but these errors were encountered: