We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c724cf commit ab8d688Copy full SHA for ab8d688
1 file changed
tasks/util/bundle_wrapper.mjs
@@ -73,7 +73,9 @@ function addWrapper(path){
73
path,
74
[
75
'',
76
- 'window.Plotly = Plotly;',
+ 'if (!(typeof define === "function" && define.amd)) {',
77
+ ' window.Plotly = Plotly;',
78
+ '}',
79
'return Plotly;',
80
'}));',
81
].join('\n'),
0 commit comments