Skip to content

NPM modules for dists #2400

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

Closed
nicolaskruchten opened this issue Feb 23, 2018 · 2 comments · Fixed by #2670
Closed

NPM modules for dists #2400

nicolaskruchten opened this issue Feb 23, 2018 · 2 comments · Fixed by #2670
Labels
feature something new

Comments

@nicolaskruchten
Copy link
Contributor

Idea: we could have an NPM module called e.g. plotly.js-dist which contained only precompiled bundles. Or we could have an NPM module per bundle. These modules would have zero dependencies so they would never throw warnings on installation and they would download really fast and require no special Webpack loaders or Browserify transforms so they would work smoothly with create-react-app or Next.js or whatever comes next :)

@etpinard
Copy link
Contributor

Great idea.

I'll even suggest making one npm registry per partial bundle that is plotly.js-basic, plotly.js-cartesian, plotly.js-geo, plotly.js-gl3d, plotly.js-gl2d, plotly.js-mapbox, plotly.js-finance that would only include one .js and one .min.js file.

@etpinard
Copy link
Contributor

Related: #768

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants