@multiplatform.one/config 7.53.0 → 7.54.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplatform.one/config",
3
- "version": "7.53.0",
3
+ "version": "7.54.1",
4
4
  "description": "Shared build and test configuration presets for multiplatform.one",
5
5
  "keywords": [
6
6
  "config",
@@ -106,7 +106,7 @@
106
106
  "access": "public"
107
107
  },
108
108
  "dependencies": {
109
- "@multiplatform.one/utils": "^7.53.0",
109
+ "@multiplatform.one/utils": "^7.54.1",
110
110
  "@tamagui/vite-plugin": "2.7.6",
111
111
  "@vitejs/plugin-react": "^6.1.2",
112
112
  "dotenv": "^17.4.2",
@@ -118,26 +118,32 @@ describe("phosphorBarrelBundlePlugin (MPO-482)", () => {
118
118
  expect(filter.id.test(`${dist}/index.es.js?v=1a2b`)).toBe(false);
119
119
  });
120
120
 
121
- it("rolls the icons into one module that still imports ./lib from disk", async () => {
122
- const code = (await handler(barrel)) ?? "";
123
- const sources = new Set([...code.matchAll(/^import .* from "([^"]+)";$/gm)].map((m) => m[1]));
124
- expect([...sources].sort()).toEqual([
125
- "./lib/IconBase.es.js",
126
- "./lib/SSRBase.es.js",
127
- "./lib/context.es.js",
128
- "react",
129
- ]);
130
- for (const name of [
131
- "HeartIcon",
132
- "FolderIcon",
133
- "ActivityIcon",
134
- "IconBase",
135
- "IconContext",
136
- "SSR",
137
- ]) {
138
- expect(code).toMatch(new RegExp(`\\bas ${name}\\b`));
139
- }
140
- });
121
+ // A real bundle of phosphor's ~1,500 icon modules: 3.4 s on a quiet
122
+ // omarchy, past vitest's 5 s default on a loaded one or a two-CPU runner.
123
+ it(
124
+ "rolls the icons into one module that still imports ./lib from disk",
125
+ { timeout: 30_000 },
126
+ async () => {
127
+ const code = (await handler(barrel)) ?? "";
128
+ const sources = new Set([...code.matchAll(/^import .* from "([^"]+)";$/gm)].map((m) => m[1]));
129
+ expect([...sources].sort()).toEqual([
130
+ "./lib/IconBase.es.js",
131
+ "./lib/SSRBase.es.js",
132
+ "./lib/context.es.js",
133
+ "react",
134
+ ]);
135
+ for (const name of [
136
+ "HeartIcon",
137
+ "FolderIcon",
138
+ "ActivityIcon",
139
+ "IconBase",
140
+ "IconContext",
141
+ "SSR",
142
+ ]) {
143
+ expect(code).toMatch(new RegExp(`\\bas ${name}\\b`));
144
+ }
145
+ },
146
+ );
141
147
 
142
148
  it("rolls each barrel up once per run", () => {
143
149
  expect(handler(barrel)).toBe(handler(barrel));