@leapdevuk/component-toolbox 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHANGELOG.md +27 -0
- package/dist/index.cjs.js +3 -37
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1449 -8535
- package/dist/index.es.js.map +1 -1
- package/package.json +63 -63
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.2 (2026-11-17)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
- **Peer dependency subpaths are now kept external.** The Rollup `external` option matched
|
|
8
|
+
only exact package names, so subpath imports such as `react/jsx-runtime`,
|
|
9
|
+
`@mui/material/styles` and `date-fns/format` were being inlined into the bundle. Two
|
|
10
|
+
consequences for consuming applications:
|
|
11
|
+
- The inlined CJS form of `react/jsx-runtime` calls `require("react")`, which throws at
|
|
12
|
+
runtime in a browser.
|
|
13
|
+
- Duplicate copies of MUI and date-fns internals were shipped, so a consuming app could
|
|
14
|
+
end up with two MUI theme contexts and two React runtimes.
|
|
15
|
+
|
|
16
|
+
Bundle size drops accordingly:
|
|
17
|
+
|
|
18
|
+
| Output | Before | After |
|
|
19
|
+
| --- | ---: | ---: |
|
|
20
|
+
| `index.es.js` | 322.45 kB | **113.85 kB** |
|
|
21
|
+
| `index.cjs.js` | 247.13 kB | **93.92 kB** |
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
- Vite config now imports `package.json` as a default import with an explicit
|
|
26
|
+
`with { type: "json" }` attribute, so it is compatible with Vite's native config loader
|
|
27
|
+
(planned to become the default in a future major). Removes a build warning; build output
|
|
28
|
+
is unchanged by this part.
|
|
29
|
+
|
|
3
30
|
## 0.3.1 (2026-11-17)
|
|
4
31
|
|
|
5
32
|
### Features
|