Commit 4c351e1
committed
feat: support universal platform as a web target (#5690)
* feat: support universal platform as a web target and update related tests
* feat: enhance isWebTarget logic to support universal target and update tests
* feat: update target determination logic to treat universal targets as web targets
* test: add support for universal target in tests and HTML generation
* feat: implement EventTarget-based emitter for universal targets in webpack
* test: enhance ESM/universal target handling in snapshots for deterministic output
* fix: update emitter resolution to use fileURLToPath for compatibility with newer webpack
* fix: update emitter resolution to use cjsRequire for compatibility with older webpack versions1 parent 2236aa4 commit 4c351e1
9 files changed
Lines changed: 291 additions & 139 deletions
File tree
- .changeset
- lib
- test
- e2e
- __snapshots__
- helpers
- types/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
| 577 | + | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
581 | 591 | | |
582 | 592 | | |
583 | 593 | | |
| |||
1683 | 1693 | | |
1684 | 1694 | | |
1685 | 1695 | | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
1686 | 1728 | | |
1687 | 1729 | | |
1688 | 1730 | | |
| |||
0 commit comments