@bagelink/blox 1.15.675 → 1.15.676

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.
@@ -94,13 +94,18 @@ function bloxPlugin(options = {}) {
94
94
  name: "vite-plugin-blox-ssr-build",
95
95
  enforce: "pre",
96
96
  config(config) {
97
- var _a, _b, _c, _d, _e, _f, _g;
98
- if ((_a = config.build) == null ? void 0 : _a.ssr) {
97
+ var _a, _b, _c, _d, _e, _f, _g, _h;
98
+ const cssMinifyFix = {
99
+ build: { cssMinify: ((_a = config.build) == null ? void 0 : _a.cssMinify) ?? "esbuild" }
100
+ };
101
+ if ((_b = config.build) == null ? void 0 : _b.ssr) {
99
102
  return {
103
+ ...cssMinifyFix,
100
104
  build: {
105
+ ...cssMinifyFix.build,
101
106
  rollupOptions: {
102
- input: ((_c = (_b = config.build) == null ? void 0 : _b.rollupOptions) == null ? void 0 : _c.input) ?? "src/main.server.ts",
103
- output: ((_e = (_d = config.build) == null ? void 0 : _d.rollupOptions) == null ? void 0 : _e.output) ?? {
107
+ input: ((_d = (_c = config.build) == null ? void 0 : _c.rollupOptions) == null ? void 0 : _d.input) ?? "src/main.server.ts",
108
+ output: ((_f = (_e = config.build) == null ? void 0 : _e.rollupOptions) == null ? void 0 : _f.output) ?? {
104
109
  dir: "dist/server",
105
110
  format: "esm"
106
111
  },
@@ -109,13 +114,13 @@ function bloxPlugin(options = {}) {
109
114
  "vue-router",
110
115
  "vue/server-renderer",
111
116
  "@vue/server-renderer",
112
- ...Array.isArray((_g = (_f = config.build) == null ? void 0 : _f.rollupOptions) == null ? void 0 : _g.external) ? config.build.rollupOptions.external : []
117
+ ...Array.isArray((_h = (_g = config.build) == null ? void 0 : _g.rollupOptions) == null ? void 0 : _h.external) ? config.build.rollupOptions.external : []
113
118
  ]
114
119
  }
115
120
  }
116
121
  };
117
122
  }
118
- return {};
123
+ return cssMinifyFix;
119
124
  }
120
125
  });
121
126
  }
@@ -1 +1 @@
1
- {"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../src/vite-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAc,MAAM,MAAM,CAAA;AAM9C,MAAM,WAAW,iBAAiB;IACjC;;;;;OAKG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IACb;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,MAAM,EAAE,CAgdpE"}
1
+ {"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../src/vite-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAc,MAAM,MAAM,CAAA;AAM9C,MAAM,WAAW,iBAAiB;IACjC;;;;;OAKG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IACb;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,MAAM,EAAE,CA8dpE"}
@@ -70,13 +70,18 @@ function bloxPlugin(options = {}) {
70
70
  name: "vite-plugin-blox-ssr-build",
71
71
  enforce: "pre",
72
72
  config(config) {
73
- var _a, _b, _c, _d, _e, _f, _g;
74
- if ((_a = config.build) == null ? void 0 : _a.ssr) {
73
+ var _a, _b, _c, _d, _e, _f, _g, _h;
74
+ const cssMinifyFix = {
75
+ build: { cssMinify: ((_a = config.build) == null ? void 0 : _a.cssMinify) ?? "esbuild" }
76
+ };
77
+ if ((_b = config.build) == null ? void 0 : _b.ssr) {
75
78
  return {
79
+ ...cssMinifyFix,
76
80
  build: {
81
+ ...cssMinifyFix.build,
77
82
  rollupOptions: {
78
- input: ((_c = (_b = config.build) == null ? void 0 : _b.rollupOptions) == null ? void 0 : _c.input) ?? "src/main.server.ts",
79
- output: ((_e = (_d = config.build) == null ? void 0 : _d.rollupOptions) == null ? void 0 : _e.output) ?? {
83
+ input: ((_d = (_c = config.build) == null ? void 0 : _c.rollupOptions) == null ? void 0 : _d.input) ?? "src/main.server.ts",
84
+ output: ((_f = (_e = config.build) == null ? void 0 : _e.rollupOptions) == null ? void 0 : _f.output) ?? {
80
85
  dir: "dist/server",
81
86
  format: "esm"
82
87
  },
@@ -85,13 +90,13 @@ function bloxPlugin(options = {}) {
85
90
  "vue-router",
86
91
  "vue/server-renderer",
87
92
  "@vue/server-renderer",
88
- ...Array.isArray((_g = (_f = config.build) == null ? void 0 : _f.rollupOptions) == null ? void 0 : _g.external) ? config.build.rollupOptions.external : []
93
+ ...Array.isArray((_h = (_g = config.build) == null ? void 0 : _g.rollupOptions) == null ? void 0 : _h.external) ? config.build.rollupOptions.external : []
89
94
  ]
90
95
  }
91
96
  }
92
97
  };
93
98
  }
94
- return {};
99
+ return cssMinifyFix;
95
100
  }
96
101
  });
97
102
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/blox",
3
3
  "type": "module",
4
- "version": "1.15.675",
4
+ "version": "1.15.676",
5
5
  "description": "Blox page builder library for drag-and-drop page building and static data management",
6
6
  "author": {
7
7
  "name": "Bagel Studio",