@genesislcap/vite-builder 15.35.4 → 15.36.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAc3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;yBAEmB,KAAK,YAAY;AAAvC,wBAmOE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAc3D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;yBAEmB,KAAK,YAAY;AAAvC,wBAwOE"}
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ const vite_js_1 = require("./vite.js");
31
31
  * This has the added benefit of aligning with the current production app builds.
32
32
  */
33
33
  exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
34
- var _a, _b, _c;
34
+ var _a, _b, _c, _d;
35
35
  const { config: { app: { rootElement }, env, http, }, dirs: { cwd }, cli: { isDev, isBuild, isAnalyze, options: { open, https }, }, pkg: { description }, resolve: { alias }, } = ctx;
36
36
  const define = (0, build_kit_1.resolveDefineConfig)(env, http, 'vite');
37
37
  /**
@@ -132,7 +132,12 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
132
132
  },
133
133
  define,
134
134
  build: {
135
- minify: false,
135
+ /**
136
+ * Left to Vite's production default (esbuild for JS and CSS) unless the app opts out, matching
137
+ * the Webpack builder's Terser minimizer. This was hardcoded to `false` when the builder was
138
+ * dev-only, which shipped unminified production bundles and disabled CSS minification with them.
139
+ */
140
+ minify: (_d = ctx.config.vite) === null || _d === void 0 ? void 0 : _d.minify,
136
141
  lib: isDev
137
142
  ? {
138
143
  entry: 'src/index.ts',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/vite-builder",
3
3
  "description": "Vite builder",
4
- "version": "15.35.4",
4
+ "version": "15.36.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "lint:fix": "genx lint -l ox --fix"
17
17
  },
18
18
  "dependencies": {
19
- "@genesislcap/build-kit": "15.35.4",
19
+ "@genesislcap/build-kit": "15.36.1",
20
20
  "consola": "^3.0.2",
21
21
  "copyfiles": "^2.4.1",
22
22
  "vite": "^7.2.2",