@acmekit/admin-bundler 2.13.73 → 2.13.75

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 +5 -23
  2. package/package.json +5 -6
package/dist/index.js CHANGED
@@ -1140,7 +1140,6 @@ module.exports = __toCommonJS(index_exports);
1140
1140
 
1141
1141
  // src/utils/config.ts
1142
1142
  var import_admin_shared = require("@acmekit/admin-shared");
1143
- var import_bundler_shared = require("@acmekit/bundler-shared");
1144
1143
  var import_path = __toESM(require("path"));
1145
1144
 
1146
1145
  // src/plugins/inject-tailwindcss.ts
@@ -1315,18 +1314,6 @@ async function getViteConfig(options) {
1315
1314
  const hmrOptions = getHmrConfig(hmrPort);
1316
1315
  const allowedHosts = getAllowedHosts();
1317
1316
  const root = import_path.default.resolve(process.cwd(), ".acmekit/client");
1318
- const resolvePackageDist = (pkg) => {
1319
- try {
1320
- const pkgJson = require.resolve(`${pkg}/package.json`, {
1321
- paths: [process.cwd()]
1322
- });
1323
- return import_path.default.resolve(import_path.default.dirname(pkgJson), "dist");
1324
- } catch {
1325
- return null;
1326
- }
1327
- };
1328
- const watchPackages = ["@acmekit/ui", "@acmekit/dashboard", "@acmekit/js-sdk"];
1329
- const watchDirs = watchPackages.map((pkg) => resolvePackageDist(pkg)).filter(Boolean);
1330
1317
  const backendUrl = options.backendUrl ?? "";
1331
1318
  const frontendUrl = options.frontendUrl ?? options.storefrontUrl ?? "";
1332
1319
  const appName = options.appName ?? void 0;
@@ -1335,7 +1322,6 @@ async function getViteConfig(options) {
1335
1322
  const baseConfig = {
1336
1323
  root,
1337
1324
  base: options.path,
1338
- cacheDir: import_path.default.resolve(process.cwd(), "node_modules/.vite/acmekit-admin"),
1339
1325
  build: {
1340
1326
  emptyOutDir: true,
1341
1327
  outDir: import_path.default.resolve(process.cwd(), options.outDir)
@@ -1347,15 +1333,12 @@ async function getViteConfig(options) {
1347
1333
  "react-dom/client",
1348
1334
  "react-router-dom",
1349
1335
  "react-i18next",
1350
- "@tanstack/react-query",
1351
- // Auto-resolve transitive deps of excluded workspace packages.
1352
- // Excluded packages aren't pre-bundled, so their CJS deps (like qs)
1353
- // must be explicitly included or named ESM imports will fail.
1354
- ...(0, import_bundler_shared.resolveTransitiveDeps)(watchPackages)
1336
+ "@acmekit/ui",
1337
+ "@acmekit/dashboard",
1338
+ "@acmekit/js-sdk",
1339
+ "@tanstack/react-query"
1355
1340
  ],
1356
- // Watched workspace packages must be excluded from pre-bundling so
1357
- // moduleGraph.invalidateAll() + full-reload picks up their changes.
1358
- exclude: [...import_admin_shared.VIRTUAL_MODULES, ...watchPackages]
1341
+ exclude: [...import_admin_shared.VIRTUAL_MODULES]
1359
1342
  },
1360
1343
  define: {
1361
1344
  __BASE__: JSON.stringify(options.path),
@@ -1373,7 +1356,6 @@ async function getViteConfig(options) {
1373
1356
  ...allowedHosts && { allowedHosts }
1374
1357
  },
1375
1358
  plugins: [
1376
- (0, import_bundler_shared.watchWorkspacePackages)(watchDirs),
1377
1359
  writeStaticFiles2({
1378
1360
  plugins: options.plugins
1379
1361
  }),
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.75",
4
4
  "description": "Bundler for the AcmeKit admin dashboard.",
5
5
  "author": "Kasper Kristensen <kasper@acmekit.com>",
6
6
  "scripts": {
@@ -18,13 +18,12 @@
18
18
  "package.json"
19
19
  ],
20
20
  "devDependencies": {
21
- "@acmekit/types": "2.13.73"
21
+ "@acmekit/types": "2.13.75"
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.75",
25
+ "@acmekit/admin-vite-plugin": "2.13.75",
26
+ "@acmekit/dashboard": "2.13.75",
28
27
  "@vitejs/plugin-react": "^4.2.1",
29
28
  "autoprefixer": "^10.4.19",
30
29
  "compression": "^1.8.0",