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) |
alexcjohnson
left a comment
There was a problem hiding this comment.
💃 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