@acmekit/admin-bundler 2.13.1 → 2.13.3

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 +3 -2
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1240,13 +1240,14 @@ function getPluginName(index) {
1240
1240
  return `plugin${index}`;
1241
1241
  }
1242
1242
  async function writeEntryFile(outDir, plugins) {
1243
+ const pluginsList = plugins ?? [];
1243
1244
  const entry = import_outdent.default`
1244
1245
  import App from "@acmekit/dashboard";
1245
1246
  import React from "react";
1246
1247
  import ReactDOM from "react-dom/client";
1247
1248
  import "./index.css";
1248
1249
 
1249
- ${plugins?.map((plugin2, idx) => `import ${getPluginName(idx)} from "${plugin2}"`).join("\n")}
1250
+ ${pluginsList.map((plugin2, idx) => `import ${getPluginName(idx)} from "${plugin2}"`).join("\n")}
1250
1251
 
1251
1252
  let root = null
1252
1253
 
@@ -1257,7 +1258,7 @@ async function writeEntryFile(outDir, plugins) {
1257
1258
 
1258
1259
  root.render(
1259
1260
  <React.StrictMode>
1260
- <App plugins={[${plugins?.map((_, idx) => getPluginName(idx)).join(", ")}]} />
1261
+ <App plugins={[${pluginsList.map((_, idx) => getPluginName(idx)).join(", ")}]} />
1261
1262
  </React.StrictMode>
1262
1263
  )
1263
1264
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acmekit/admin-bundler",
3
- "version": "2.13.1",
3
+ "version": "2.13.3",
4
4
  "description": "Bundler for the AcmeKit admin dashboard.",
5
5
  "author": "Kasper Kristensen <kasper@acmekit.com>",
6
6
  "scripts": {
@@ -18,12 +18,12 @@
18
18
  "package.json"
19
19
  ],
20
20
  "devDependencies": {
21
- "@acmekit/types": "2.13.1"
21
+ "@acmekit/types": "2.13.3"
22
22
  },
23
23
  "dependencies": {
24
- "@acmekit/admin-shared": "2.13.1",
25
- "@acmekit/admin-vite-plugin": "2.13.1",
26
- "@acmekit/dashboard": "2.13.1",
24
+ "@acmekit/admin-shared": "2.13.3",
25
+ "@acmekit/admin-vite-plugin": "2.13.3",
26
+ "@acmekit/dashboard": "2.13.3",
27
27
  "@vitejs/plugin-react": "^4.2.1",
28
28
  "autoprefixer": "^10.4.19",
29
29
  "compression": "^1.8.0",