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 71bc4ee commit 45fc106Copy full SHA for 45fc106
tasks/util/bundle_wrapper.mjs
@@ -56,9 +56,7 @@ function addWrapper(path){
56
[
57
'(',
58
' function(root, factory) {',
59
- ' if (typeof define === "function" && define.amd) {',
60
- ' define(factory);',
61
- ' } else if (typeof module === "object" && module.exports) {',
+ ' if (typeof module === "object" && module.exports) {',
62
' module.exports = factory();',
63
' } else {',
64
' root.moduleName = factory();',
@@ -73,9 +71,7 @@ function addWrapper(path){
73
71
path,
74
72
75
'',
76
- 'if (!(typeof define === "function" && define.amd)) {',
77
- ' window.Plotly = Plotly;',
78
- '}',
+ 'window.Plotly = Plotly;',
79
'return Plotly;',
80
'}));',
81
].join('\n'),
0 commit comments