Commit 5c3f02f
authored
✨ improve(minor): no split chunks (@roots/sage) (#2399)
- don't create vendor chunk by default
- users can create a vendor chunk using [bud.bundle](https://bud.js.org/docs/bud.bundle) or async imports
- prevents `@wordpress/*` dependencies from being enqueued by Acorn for multiple entrypoints when they are only utilized in one
## References
- https://discourse.roots.io/t/updating-bud-to-6-14-x-adds-all-wp-includes-scripts-to-front-end/25736
## Type of change
**MINOR: feature**1 parent b47f0e9 commit 5c3f02f
File tree
3 files changed
+7
-23
lines changed- sources/@roots/sage
- src/sage
- test/sage
- tests/reproductions
3 files changed
+7
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 66 | + | |
82 | 67 | | |
83 | 68 | | |
84 | 69 | | |
85 | 70 | | |
86 | | - | |
87 | 71 | | |
| 72 | + | |
88 | 73 | | |
89 | 74 | | |
90 | 75 | | |
91 | 76 | | |
92 | 77 | | |
93 | 78 | | |
94 | | - | |
| 79 | + | |
95 | 80 | | |
96 | 81 | | |
97 | 82 | | |
| |||
100 | 85 | | |
101 | 86 | | |
102 | 87 | | |
103 | | - | |
| 88 | + | |
104 | 89 | | |
105 | 90 | | |
106 | 91 | | |
107 | 92 | | |
108 | 93 | | |
109 | 94 | | |
110 | 95 | | |
111 | | - | |
| 96 | + | |
112 | 97 | | |
113 | 98 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
0 commit comments