@trackunit/iris-app-sdk-vite 1.4.37 → 1.4.38

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 1.4.38 (2026-09-07)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated iris-app-build-utilities to 2.4.36
6
+ - Updated iris-app-api to 2.4.30
7
+ - Updated iris-app to 2.6.6
8
+
1
9
  ## 1.4.37 (2026-09-07)
2
10
 
3
11
  ### 🧱 Updated Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-sdk-vite",
3
- "version": "1.4.37",
3
+ "version": "1.4.38",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "executors": "./executors.json",
@@ -10,10 +10,10 @@
10
10
  "dependencies": {
11
11
  "rxjs": "7.8.1",
12
12
  "win-ca": "^3.5.1",
13
- "@trackunit/iris-app-build-utilities": "2.4.35",
14
- "@trackunit/iris-app-api": "2.4.29",
13
+ "@trackunit/iris-app-build-utilities": "2.4.36",
14
+ "@trackunit/iris-app-api": "2.4.30",
15
15
  "tslib": "^2.6.2",
16
- "vite": "8.1.5",
16
+ "vite": "8.2.2",
17
17
  "vite-tsconfig-paths": "^6.1.1",
18
18
  "@module-federation/vite": "1.18.1",
19
19
  "vite-plugin-checker": "^0.12.0",
@@ -22,7 +22,7 @@
22
22
  "@tailwindcss/postcss": "^4.1.18",
23
23
  "@vitejs/plugin-react-swc": "^4.3.2",
24
24
  "@nx/devkit": "23.1.0",
25
- "@trackunit/iris-app": "2.6.5",
25
+ "@trackunit/iris-app": "2.6.6",
26
26
  "cross-keychain": "^1.1.0",
27
27
  "jwt-decode": "^3.1.2"
28
28
  },
@@ -81,8 +81,10 @@ const getDefaultViteConfig = async (mode, nxRootDir, appDir, irisAppManifest, co
81
81
  // Put remoteEntry.js at root (not in assets/) to match rspack
82
82
  assetsDir: "",
83
83
  // Use JavaScript entry instead of index.html for Module Federation remotes
84
- // The MF plugin generates remoteEntry.js as the actual bundle entry
85
- rollupOptions: {
84
+ // The MF plugin generates remoteEntry.js as the actual bundle entry.
85
+ // Vite 8.2 ignores `build.rollupOptions` when any `rolldownOptions` is
86
+ // already present (we set `optimizeDeps.rolldownOptions` above).
87
+ rolldownOptions: {
86
88
  input: VIRTUAL_ENTRY_ID,
87
89
  // Preserve the entry file name for Module Federation compatibility
88
90
  output: {
@@ -360,7 +360,7 @@ async function getTrackunitIrisAppVitePlugins(options) {
360
360
  // Each chunk's CSS is injected when that chunk loads - ideal for Module Federation
361
361
  // NOTE: We don't set cssCodeSplit here because the plugin controls it
362
362
  cssCodeSplit: true,
363
- rollupOptions: {
363
+ rolldownOptions: {
364
364
  output: {
365
365
  // Chunk splitting strategy - bundle small modules together to reduce HTTP requests
366
366
  manualChunks(id) {
@@ -373,24 +373,30 @@ async function getTrackunitIrisAppVitePlugins(options) {
373
373
  id.includes("_mf_")) {
374
374
  return undefined;
375
375
  }
376
- // Skip node_modules - let Rollup handle vendor chunking
376
+ // Skip node_modules - let Rolldown handle vendor chunking
377
377
  if (id.includes("node_modules")) {
378
378
  return undefined;
379
379
  }
380
- // 1. Split translations per language (like Rspack's splitChunks cacheGroups)
380
+ // Split translations per language (like Rspack's splitChunks cacheGroups)
381
381
  const translationMatch = id.match(/[\\/]locales[\\/]([^/\\]+)[\\/]translation\.json$/);
382
382
  if (translationMatch) {
383
383
  return `translations-${translationMatch[1]}`;
384
384
  }
385
- // Let Rollup handle everything else - default chunking is fine
386
- // Vite/Rollup will merge small chunks automatically
385
+ // Let Rolldown handle everything else - default chunking is fine
387
386
  return undefined;
388
387
  },
389
388
  },
390
389
  },
391
390
  },
392
391
  };
393
- return (0, vite_2.mergeConfig)(conf, baseConfig, false); // false = don't concatenate root-level arrays
392
+ const merged = (0, vite_2.mergeConfig)(conf, baseConfig, false); // false = don't concatenate root-level arrays
393
+ // Vite 8.2 still copies `rolldownOptions` onto the deprecated `rollupOptions`
394
+ // alias. Returning both makes Vite ignore `rollupOptions` and warn. Drop the
395
+ // alias so Iris output stays on `build.rolldownOptions` only.
396
+ if (merged.build) {
397
+ delete merged.build.rollupOptions;
398
+ }
399
+ return merged;
394
400
  },
395
401
  configResolved(resolvedConfig) {
396
402
  config = resolvedConfig;