@acmekit/admin-bundler 2.13.72 → 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.
- package/dist/index.js +13 -4
- 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
|
|
1329
|
-
|
|
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;
|
|
@@ -1347,11 +1352,15 @@ async function getViteConfig(options) {
|
|
|
1347
1352
|
"react-dom/client",
|
|
1348
1353
|
"react-router-dom",
|
|
1349
1354
|
"react-i18next",
|
|
1350
|
-
"@tanstack/react-query"
|
|
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)
|
|
1351
1360
|
],
|
|
1352
1361
|
// Watched workspace packages must be excluded from pre-bundling so
|
|
1353
1362
|
// moduleGraph.invalidateAll() + full-reload picks up their changes.
|
|
1354
|
-
exclude: [...import_admin_shared.VIRTUAL_MODULES, ...
|
|
1363
|
+
exclude: [...import_admin_shared.VIRTUAL_MODULES, ...localPackages]
|
|
1355
1364
|
},
|
|
1356
1365
|
define: {
|
|
1357
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.
|
|
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.
|
|
21
|
+
"@acmekit/types": "2.13.74"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@acmekit/admin-shared": "2.13.
|
|
25
|
-
"@acmekit/admin-vite-plugin": "2.13.
|
|
26
|
-
"@acmekit/bundler-shared": "2.13.
|
|
27
|
-
"@acmekit/dashboard": "2.13.
|
|
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",
|