Skip to content

Commit 45fc106

Browse files
committed
drop AMD support from esbuild wrapper
1 parent 71bc4ee commit 45fc106

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tasks/util/bundle_wrapper.mjs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ function addWrapper(path){
5656
[
5757
'(',
5858
' function(root, factory) {',
59-
' if (typeof define === "function" && define.amd) {',
60-
' define(factory);',
61-
' } else if (typeof module === "object" && module.exports) {',
59+
' if (typeof module === "object" && module.exports) {',
6260
' module.exports = factory();',
6361
' } else {',
6462
' root.moduleName = factory();',
@@ -73,9 +71,7 @@ function addWrapper(path){
7371
path,
7472
[
7573
'',
76-
'if (!(typeof define === "function" && define.amd)) {',
77-
' window.Plotly = Plotly;',
78-
'}',
74+
'window.Plotly = Plotly;',
7975
'return Plotly;',
8076
'}));',
8177
].join('\n'),

0 commit comments

Comments
 (0)