@acmekit/admin-bundler 2.13.74 → 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 -28
  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,23 +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 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);
1335
1317
  const backendUrl = options.backendUrl ?? "";
1336
1318
  const frontendUrl = options.frontendUrl ?? options.storefrontUrl ?? "";
1337
1319
  const appName = options.appName ?? void 0;
@@ -1340,7 +1322,6 @@ async function getViteConfig(options) {
1340
1322
  const baseConfig = {
1341
1323
  root,
1342
1324
  base: options.path,
1343
- cacheDir: import_path.default.resolve(process.cwd(), "node_modules/.vite/acmekit-admin"),
1344
1325
  build: {
1345
1326
  emptyOutDir: true,
1346
1327
  outDir: import_path.default.resolve(process.cwd(), options.outDir)
@@ -1352,15 +1333,12 @@ async function getViteConfig(options) {
1352
1333
  "react-dom/client",
1353
1334
  "react-router-dom",
1354
1335
  "react-i18next",
1355
- "@tanstack/react-query",
1356
- // Auto-resolve transitive deps of excluded workspace packages.
1357
- // Excluded packages aren't pre-bundled, so their CJS deps (like qs)
1358
- // must be explicitly included or named ESM imports will fail.
1359
- ...(0, import_bundler_shared.resolveTransitiveDeps)(localPackages)
1336
+ "@acmekit/ui",
1337
+ "@acmekit/dashboard",
1338
+ "@acmekit/js-sdk",
1339
+ "@tanstack/react-query"
1360
1340
  ],
1361
- // Watched workspace packages must be excluded from pre-bundling so
1362
- // moduleGraph.invalidateAll() + full-reload picks up their changes.
1363
- exclude: [...import_admin_shared.VIRTUAL_MODULES, ...localPackages]
1341
+ exclude: [...import_admin_shared.VIRTUAL_MODULES]
1364
1342
  },
1365
1343
  define: {
1366
1344
  __BASE__: JSON.stringify(options.path),
@@ -1378,7 +1356,6 @@ async function getViteConfig(options) {
1378
1356
  ...allowedHosts && { allowedHosts }
1379
1357
  },
1380
1358
  plugins: [
1381
- (0, import_bundler_shared.watchWorkspacePackages)(watchDirs),
1382
1359
  writeStaticFiles2({
1383
1360
  plugins: options.plugins
1384
1361
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acmekit/admin-bundler",
3
- "version": "2.13.74",
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.74"
21
+ "@acmekit/types": "2.13.75"
22
22
  },
23
23
  "dependencies": {
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",
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",