-
Notifications
You must be signed in to change notification settings - Fork 71
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
Custom Partial Plotly Bundle to Reduce Bundle Size Further #135
Comments
Attempting to reduce bundle size further |
BaseAfter using custom bundleimport Plotly from "plotly.js/lib/core";
import Scatter3d from "plotly.js/lib/scatter3d"
import Mesh3d from "plotly.js/lib/mesh3d"
import createPlotlyComponent from "react-plotly.js/factory";
Plotly.register([Scatter3d, Mesh3d]);
const CustomPlotly = createPlotlyComponent(Plotly);
export default CustomPlotly; After splitting custom bundleWhen you split the core plotly module from others import("plotly.js/lib/core").then(Plotly => {
Plotly.register([Scatter3d, Mesh3d])
this.Plot = createPlotlyComponent(Plotly)
}) |
mithi
changed the title
Custom Partial Plotly Bundle Not Working
Custom Partial Plotly Bundle to Reduce Bundle Size Further
Jul 30, 2020
The best way to reduce bundle size is to use a smaller library such as |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Full discussion in: plotly/plotly.js#5031
The text was updated successfully, but these errors were encountered: