-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fix library's imported name using requirejs
AMD loader
#6440
Conversation
umdNamedDefine
webpack config option to false
Sure enough, in the unminified bundle I see After BTW, the link above was from the artifacts tab of the circleci job, if I go to the "Show URLs to Build Files" step instead the links (like https://176356-45646037-gh.circle-artifacts.com/0/dist/plotly.js) don't work. |
you can just test it with a requirejs snippet I think...
to configure then try something like |
For reference here is the diff between before and after applying 16f1d1f. |
ok so here is a Pen with 2.16 https://codepen.io/nicolaskruchten/pen/zYLPGgY here is a broken one with 2.17 https://codepen.io/nicolaskruchten/pen/NWBwGKL here is one with the artifact from this branch (I think!) https://codepen.io/nicolaskruchten/pen/BaPmoax |
Generally it looks like it works? |
(I just lifted some bits of code from https://plotly.com/python/bar-charts/ so I'm fairly confident that this is representative of what goes on in py-docs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💃 Excellent! Let's do it 🚀
2aa745d
to
40cecb6
Compare
Co-authored-by: Alex Johnson <alex@plot.ly>
umdNamedDefine
webpack config option to falserequirejs
AMD loader
Potential fix discovered by @alexcjohnson for AMD require in the docs
@plotly/plotly_js