@genesislcap/vite-builder 15.57.0 → 15.58.1-FUI-2629.4
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.d.ts +0 -24
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
1
|
import type { BuildContext } from '@genesislcap/build-kit';
|
|
2
|
-
/**
|
|
3
|
-
* There seems to be various documented issues using Vite in a monorepo setup that are impacted by various factors.
|
|
4
|
-
*
|
|
5
|
-
* Consider:
|
|
6
|
-
* - npm workspace / lerna managed package links within the monorepo itself
|
|
7
|
-
* - installed package dependencies that have internal dependencies (peer or otherwise) back onto the packages in this monorepo
|
|
8
|
-
* - manually npm linked package dependencies that have internal (peer or otherwise) back onto the packages in this monorepo
|
|
9
|
-
*
|
|
10
|
-
* There are several layers of Vite configuration offered to try and combat this, but there doesn't seem to be a definitive guide.
|
|
11
|
-
*
|
|
12
|
-
* We've attempted to address the issue using optimizeDeps.include/exclude, resolve.dedupe, but there are several other
|
|
13
|
-
* configs like build.commonjsOptions.include/exclude etc.
|
|
14
|
-
*
|
|
15
|
-
* Devs can continue to use the default Vite based dev task where speed of reload is desired:
|
|
16
|
-
*
|
|
17
|
-
* `"dev": "genx dev"`
|
|
18
|
-
*
|
|
19
|
-
* ...but be aware of that the integrity of the dependency graph is being compromised to simply improve build speeds.
|
|
20
|
-
* You may wish to use webpack for development instead, especially if using npm link.
|
|
21
|
-
*
|
|
22
|
-
* `"dev:webpack": "genx dev -b webpack"`
|
|
23
|
-
*
|
|
24
|
-
* This has the added benefit of aligning with the current production app builds.
|
|
25
|
-
*/
|
|
26
2
|
declare const _default: (ctx: BuildContext) => Promise<void>;
|
|
27
3
|
export default _default;
|
|
28
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;yBA0CrC,KAAK,YAAY;AAAvC,wBA0OE"}
|
package/dist/index.js
CHANGED
|
@@ -30,6 +30,8 @@ const vite_js_1 = require("./vite.js");
|
|
|
30
30
|
*
|
|
31
31
|
* This has the added benefit of aligning with the current production app builds.
|
|
32
32
|
*/
|
|
33
|
+
// optimizeDeps.entries replaces Vite's default scan entries and their ignores, so restate them
|
|
34
|
+
const VITE_DEFAULT_DEP_SCAN_ENTRIES = ['**/*.html', '!**/__tests__/**', '!**/coverage/**'];
|
|
33
35
|
exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
34
36
|
var _a, _b, _c, _d;
|
|
35
37
|
const { config: { app: { rootElement }, env, http, }, dirs: { cwd }, cli: { isDev, isBuild, isAnalyze, options: { open, https }, }, pkg: { description }, resolve: { alias }, } = ctx;
|
|
@@ -147,6 +149,8 @@ exports.default = (ctx) => tslib_1.__awaiter(void 0, void 0, void 0, function* (
|
|
|
147
149
|
},
|
|
148
150
|
root: cwd,
|
|
149
151
|
optimizeDeps: {
|
|
152
|
+
// src/pbc is only imported via foundation-shell's import.meta.glob, unseen by the dep scanner
|
|
153
|
+
entries: [...VITE_DEFAULT_DEP_SCAN_ENTRIES, 'src/pbc/**/*.ts'],
|
|
150
154
|
/**
|
|
151
155
|
* Any external @genesislcap packages, ie. not contained within this monorepo, vite will optimize by default.
|
|
152
156
|
* This behaviour creates core @genesislcap and possibly @microsoft library duplication issues. To address this,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/vite-builder",
|
|
3
3
|
"description": "Vite builder",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.58.1-FUI-2629.4",
|
|
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.
|
|
19
|
+
"@genesislcap/build-kit": "15.58.1-FUI-2629.4",
|
|
20
20
|
"consola": "^3.0.2",
|
|
21
21
|
"copyfiles": "^2.4.1",
|
|
22
22
|
"vite": "^7.2.2",
|