@acmekit/admin-bundler 2.13.73 → 2.13.74

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -4
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1325,8 +1325,13 @@ async function getViteConfig(options) {
1325
1325
  return null;
1326
1326
  }
1327
1327
  };
1328
- const watchPackages = ["@acmekit/ui", "@acmekit/dashboard", "@acmekit/js-sdk"];
1329
- const watchDirs = watchPackages.map((pkg) => resolvePackageDist(pkg)).filter(Boolean);
1328
+ const allWatchPackages = [
1329
+ "@acmekit/ui",
1330
+ "@acmekit/dashboard",
1331
+ "@acmekit/js-sdk"
1332
+ ];
1333
+ const localPackages = (0, import_bundler_shared.filterWorkspacePackages)(allWatchPackages);
1334
+ const watchDirs = localPackages.map((pkg) => resolvePackageDist(pkg)).filter(Boolean);
1330
1335
  const backendUrl = options.backendUrl ?? "";
1331
1336
  const frontendUrl = options.frontendUrl ?? options.storefrontUrl ?? "";
1332
1337
  const appName = options.appName ?? void 0;
@@ -1351,11 +1356,11 @@ async function getViteConfig(options) {
1351
1356
  // Auto-resolve transitive deps of excluded workspace packages.
1352
1357
  // Excluded packages aren't pre-bundled, so their CJS deps (like qs)
1353
1358
  // must be explicitly included or named ESM imports will fail.
1354
- ...(0, import_bundler_shared.resolveTransitiveDeps)(watchPackages)
1359
+ ...(0, import_bundler_shared.resolveTransitiveDeps)(localPackages)
1355
1360
  ],
1356
1361
  // Watched workspace packages must be excluded from pre-bundling so
1357
1362
  // moduleGraph.invalidateAll() + full-reload picks up their changes.
1358
- exclude: [...import_admin_shared.VIRTUAL_MODULES, ...watchPackages]
1363
+ exclude: [...import_admin_shared.VIRTUAL_MODULES, ...localPackages]
1359
1364
  },
1360
1365
  define: {
1361
1366
  __BASE__: JSON.stringify(options.path),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acmekit/admin-bundler",
3
- "version": "2.13.73",
3
+ "version": "2.13.74",
4
4
  "description": "Bundler for the AcmeKit admin dashboard.",
5
5
  "author": "Kasper Kristensen <kasper@acmekit.com>",
6
6
  "scripts": {
@@ -18,13 +18,13 @@
18
18
  "package.json"
19
19
  ],
20
20
  "devDependencies": {
21
- "@acmekit/types": "2.13.73"
21
+ "@acmekit/types": "2.13.74"
22
22
  },
23
23
  "dependencies": {
24
- "@acmekit/admin-shared": "2.13.73",
25
- "@acmekit/admin-vite-plugin": "2.13.73",
26
- "@acmekit/bundler-shared": "2.13.73",
27
- "@acmekit/dashboard": "2.13.73",
24
+ "@acmekit/admin-shared": "2.13.74",
25
+ "@acmekit/admin-vite-plugin": "2.13.74",
26
+ "@acmekit/bundler-shared": "2.13.74",
27
+ "@acmekit/dashboard": "2.13.74",
28
28
  "@vitejs/plugin-react": "^4.2.1",
29
29
  "autoprefixer": "^10.4.19",
30
30
  "compression": "^1.8.0",