@medusajs/admin-bundler 2.22.1 → 2.22.2-preview-20261029135257

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/AGENTS.md CHANGED
@@ -56,7 +56,7 @@ No tests in this package. Exercise changes through a test app with `medusa devel
56
56
 
57
57
  ## Gotchas
58
58
 
59
- - The package ships as CJS, but `vite` (v6+) and `@vitejs/plugin-react` (v5+) are ESM-only:
59
+ - The package ships as CJS, but `vite` (v6+), `@vitejs/plugin-react` (v5+) and `get-port` (v6+) are ESM-only:
60
60
  - Always load them with `await import(...)`, never top-level imports.
61
61
  - `scripts/assert-esm-imports.mjs` fails the build if esbuild rewrites those imports into `require()`.
62
62
  - `build.target` is pinned to `"baseline-widely-available"` in both `config.ts` and `plugin.ts`. Keep the two in sync: plugin bundles load inside the dashboard bundle.
package/dist/index.d.ts CHANGED
@@ -22,4 +22,5 @@ type ServeOptions = {
22
22
  };
23
23
  declare function serve(options: ServeOptions): Promise<IRouter>;
24
24
 
25
- export { type BundlerOptions, build, develop, plugin, serve };
25
+ export { build, develop, plugin, serve };
26
+ export type { BundlerOptions };
package/dist/index.js CHANGED
@@ -6,7 +6,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
8
  var __commonJS = (cb, mod) => function __require() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ try {
10
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
+ } catch (e) {
12
+ throw mod = 0, e;
13
+ }
10
14
  };
11
15
  var __export = (target, all) => {
12
16
  for (var name in all)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/admin-bundler",
3
- "version": "2.22.1",
3
+ "version": "2.22.2-preview-20261029135257",
4
4
  "description": "Bundler for the Medusa admin dashboard.",
5
5
  "author": "Kasper Kristensen <kasper@medusajs.com>",
6
6
  "scripts": {
@@ -25,22 +25,22 @@
25
25
  "llmsFull": "https://docs.medusajs.com/llms-full.txt",
26
26
  "mcpServer": "https://docs.medusajs.com/mcp",
27
27
  "devDependencies": {
28
- "@medusajs/types": "2.22.1"
28
+ "@medusajs/types": "2.22.2-preview-20261029135257"
29
29
  },
30
30
  "dependencies": {
31
- "@medusajs/admin-shared": "2.22.1",
32
- "@medusajs/admin-vite-plugin": "2.22.1",
33
- "@medusajs/dashboard": "2.22.1",
31
+ "@medusajs/admin-shared": "2.22.2-preview-20261029135257",
32
+ "@medusajs/admin-vite-plugin": "2.22.2-preview-20261029135257",
33
+ "@medusajs/dashboard": "2.22.2-preview-20261029135257",
34
34
  "@vitejs/plugin-react": "^5.2.0",
35
- "autoprefixer": "^10.4.19",
35
+ "autoprefixer": "^10.6.1",
36
36
  "compression": "^1.8.2",
37
37
  "express": "^4.21.0",
38
- "get-port": "^5.1.1",
38
+ "get-port": "^7.2.0",
39
39
  "glob": "13.0.6",
40
40
  "outdent": "^0.8.0",
41
41
  "postcss": "^8.5.10",
42
42
  "tailwindcss": "^3.4.3",
43
- "vite": "^7.3.6"
43
+ "vite": "^7.3.7"
44
44
  },
45
45
  "packageManager": "yarn@3.2.1",
46
46
  "engines": {