Skip to content

Commit 656a07c

Browse files
authored
Merge pull request #7367 from iisakkirotko/prevent-amd-check
Ensure AMD headers of dependencies aren't kept in bundle
2 parents 08da201 + 41900d0 commit 656a07c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

draftlogs/7367_fix.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix importing plotly.js via require on pages with [AMD](https://en.wikipedia.org/wiki/Asynchronous_module_definition) [[#7367](https://github.com/plotly/plotly.js/pull/7367)]

esbuild-config.js

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = {
2323
},
2424
define: {
2525
global: 'window',
26+
'define.amd': 'false',
2627
},
2728
target: 'es2016',
2829
logLevel: 'info',

0 commit comments

Comments
 (0)