Commit 92e5ee4
committed
fix: injecting DTL when amd define exists
https://www.ebay.com has a global define function with define.amd as an
empty object. This causes the UMD distribution of Dom Testing Library to
use the define function to expose it's methods. Since we assume the
methods are available on the TestingLibraryDom object this breaks the
library.
Modify the UMD distribution so it creates the TestingLibraryDom even
when a define function exists.1 parent 0935f14 commit 92e5ee4
2 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
0 commit comments