Commit 9ef6664
authored
docs(module): document module.parser.javascript.anonymousDefaultExportName (#8242)
Webpack 5.107 introduces a new JS parser option that controls whether
webpack sets .name to "default" on anonymous default-export functions
and classes (per the ES spec). The fix-up was added in 5.106 but the
extra Object.defineProperty calls inflate bundles, so the option
defaults to true for applications and false for libraries (when
output.library is set). Documents the option under
module.parser.javascript.
Refs: webpack/webpack#208941 parent 64581a0 commit 9ef6664
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
713 | 740 | | |
714 | 741 | | |
715 | 742 | | |
| |||
0 commit comments