@networkpro/web 1.26.13 → 1.26.15
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/.github/workflows/build-and-publish.yml +3 -3
- package/.github/workflows/lighthouse.yml +1 -1
- package/.github/workflows/playwright.yml +1 -1
- package/.github/workflows/publish-test.yml +3 -3
- package/.github/workflows/templates/publish.template.yml +3 -3
- package/.ncurc.cjs +1 -1
- package/CHANGELOG.md +52 -1
- package/package.json +16 -18
- package/scripts/checkEnv.js +12 -12
- package/src/app.html +4 -1
- package/src/hooks.server.js +4 -3
- package/src/service-worker.js +10 -4
- package/vite.config.js +12 -11
|
@@ -45,7 +45,7 @@ jobs:
|
|
|
45
45
|
- name: Upgrade npm
|
|
46
46
|
run: |
|
|
47
47
|
corepack enable
|
|
48
|
-
npm install -g npm@11.11.
|
|
48
|
+
npm install -g npm@11.11.1
|
|
49
49
|
|
|
50
50
|
- name: Install Node.js dependencies
|
|
51
51
|
run: npm ci
|
|
@@ -130,7 +130,7 @@ jobs:
|
|
|
130
130
|
- name: Upgrade npm
|
|
131
131
|
run: |
|
|
132
132
|
corepack enable
|
|
133
|
-
npm install -g npm@11.11.
|
|
133
|
+
npm install -g npm@11.11.1
|
|
134
134
|
|
|
135
135
|
- name: Install Node.js dependencies
|
|
136
136
|
run: npm ci
|
|
@@ -186,7 +186,7 @@ jobs:
|
|
|
186
186
|
- name: Upgrade npm
|
|
187
187
|
run: |
|
|
188
188
|
corepack enable
|
|
189
|
-
npm install -g npm@11.11.
|
|
189
|
+
npm install -g npm@11.11.1
|
|
190
190
|
|
|
191
191
|
- name: Install Node.js dependencies
|
|
192
192
|
run: npm ci
|
|
@@ -48,7 +48,7 @@ jobs:
|
|
|
48
48
|
- name: Upgrade npm
|
|
49
49
|
run: |
|
|
50
50
|
corepack enable
|
|
51
|
-
npm install -g npm@11.11.
|
|
51
|
+
npm install -g npm@11.11.1
|
|
52
52
|
|
|
53
53
|
- name: Install Node.js dependencies
|
|
54
54
|
run: npm ci
|
|
@@ -134,7 +134,7 @@ jobs:
|
|
|
134
134
|
- name: Upgrade npm
|
|
135
135
|
run: |
|
|
136
136
|
corepack enable
|
|
137
|
-
npm install -g npm@11.11.
|
|
137
|
+
npm install -g npm@11.11.1
|
|
138
138
|
|
|
139
139
|
- name: Install Node.js dependencies
|
|
140
140
|
run: npm ci
|
|
@@ -195,7 +195,7 @@ jobs:
|
|
|
195
195
|
- name: Upgrade npm
|
|
196
196
|
run: |
|
|
197
197
|
corepack enable
|
|
198
|
-
npm install -g npm@11.11.
|
|
198
|
+
npm install -g npm@11.11.1
|
|
199
199
|
|
|
200
200
|
- name: Install Node.js dependencies
|
|
201
201
|
run: npm ci
|
|
@@ -53,7 +53,7 @@ jobs:
|
|
|
53
53
|
- name: Upgrade npm
|
|
54
54
|
run: |
|
|
55
55
|
corepack enable
|
|
56
|
-
npm install -g npm@11.11.
|
|
56
|
+
npm install -g npm@11.11.1
|
|
57
57
|
|
|
58
58
|
- name: Install Node.js dependencies
|
|
59
59
|
run: npm ci
|
|
@@ -134,7 +134,7 @@ jobs:
|
|
|
134
134
|
- name: Upgrade npm
|
|
135
135
|
run: |
|
|
136
136
|
corepack enable
|
|
137
|
-
npm install -g npm@11.11.
|
|
137
|
+
npm install -g npm@11.11.1
|
|
138
138
|
|
|
139
139
|
- name: Install Node.js dependencies
|
|
140
140
|
run: npm ci
|
|
@@ -190,7 +190,7 @@ jobs:
|
|
|
190
190
|
- name: Upgrade npm
|
|
191
191
|
run: |
|
|
192
192
|
corepack enable
|
|
193
|
-
npm install -g npm@11.11.
|
|
193
|
+
npm install -g npm@11.11.1
|
|
194
194
|
|
|
195
195
|
- name: Install Node.js dependencies
|
|
196
196
|
run: npm ci
|
package/.ncurc.cjs
CHANGED
|
@@ -31,7 +31,7 @@ This file is part of Network Pro.
|
|
|
31
31
|
/** @type {import('npm-check-updates').RunOptions} */
|
|
32
32
|
module.exports = {
|
|
33
33
|
// Ignore specific dependencies (prevent upgrades)
|
|
34
|
-
reject: [
|
|
34
|
+
reject: [],
|
|
35
35
|
|
|
36
36
|
// Always upgrade devDependencies as well
|
|
37
37
|
dep: 'prod,dev',
|
package/CHANGELOG.md
CHANGED
|
@@ -24,6 +24,55 @@ version increments reflecting both user-visible and operational impact.
|
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
|
+
## [1.26.15] - 2026-03-12
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
|
|
31
|
+
- Updated `vite.config.js` to resolve tsconfig paths.
|
|
32
|
+
- Updated generator metadata in `src/app.html` to reflect **SvelteKit 2.54.0**.
|
|
33
|
+
- Updated all GitHub Actions workflows to utilize **npm** `11.11.1`.
|
|
34
|
+
- Removed `@eslint/js` and `eslint` from `.ncurc.cjs` "reject" list.
|
|
35
|
+
- Modified `vite.config.js` to comment out `vite-plugin-devtools-json` related entries until package is updated.
|
|
36
|
+
- Updated `scripts/checkEnv.js` to satisfy newer ESLint rules by removing an unnecessary placeholder assignment and preserving existing validation behavior.
|
|
37
|
+
- Updated `src/service-worker.js` to satisfy newer ESLint rules by preserving caught error context during precache failures and removing an unnecessary reassignment in the install handler.
|
|
38
|
+
- Bumped project version to `v1.26.15`.
|
|
39
|
+
- Updated dependencies:
|
|
40
|
+
- `dompurify` `^3.3.2` → `^3.3.3`
|
|
41
|
+
- `eslint-plugin-svelte` `^3.15.0` → `^3.15.2`
|
|
42
|
+
- `svelte` `5.53.7` → `5.53.11`
|
|
43
|
+
- `@sveltejs/kit` `2.53.4` → `2.54.0`
|
|
44
|
+
- `@vitest/coverage-v8` `4.0.18` → `4.1.0`
|
|
45
|
+
- `eslint-plugin-jsdoc` `^62.7.1` → `^62.8.0`
|
|
46
|
+
- `lightningcss` `^1.31.1` → `^1.32.0`
|
|
47
|
+
- `posthog-js` `^1.359.1` → `^1.360.1`
|
|
48
|
+
- `vitest` `4.0.18` → `4.1.0`
|
|
49
|
+
- `@sveltejs/vite-plugin-svelte` `^6.2.4` → `^7.0.0`
|
|
50
|
+
- `stylelint-order` `^7.0.1` → `^8.0.0`
|
|
51
|
+
- `vite` `^7.3.1` → `^8.0.0`
|
|
52
|
+
- `@eslint/js` `9.32.2` → `10.0.1`
|
|
53
|
+
- `eslint` `9.39.2` → `10.0.3`
|
|
54
|
+
|
|
55
|
+
### Removed
|
|
56
|
+
|
|
57
|
+
- Removed `vite-plugin-devtools-json`, as it is not compatible with Vite 8.
|
|
58
|
+
- Removed `vite-tsconfig-paths`, as it is now included natively in Vite.
|
|
59
|
+
|
|
60
|
+
### Security
|
|
61
|
+
|
|
62
|
+
- Pinned transitive dependency `tar` to `^7.5.11` to mitigate CVE-2026-31802.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## [1.26.14] - 2026-03-07
|
|
67
|
+
|
|
68
|
+
### Changed
|
|
69
|
+
|
|
70
|
+
- Bumped project version to `v1.26.14`.
|
|
71
|
+
- Added deferred script to `src/app.html` to display the Keep Android Open banner.
|
|
72
|
+
- Allowed `https://keepandroidopen.org` in `Content-Security-Policy` `script-src` across production, audit, and dev/test modes to support the Keep Android Open banner script.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
27
76
|
## [1.26.13] - 2026-03-07
|
|
28
77
|
|
|
29
78
|
### Changed
|
|
@@ -2505,7 +2554,9 @@ This enables analytics filtering and CSP hardening for the audit environment.
|
|
|
2505
2554
|
|
|
2506
2555
|
<!-- Link references -->
|
|
2507
2556
|
|
|
2508
|
-
[Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.26.
|
|
2557
|
+
[Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.26.15...HEAD
|
|
2558
|
+
[1.26.15]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.26.15
|
|
2559
|
+
[1.26.14]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.26.14
|
|
2509
2560
|
[1.26.13]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.26.13
|
|
2510
2561
|
[1.26.12]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.26.12
|
|
2511
2562
|
[1.26.11]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.26.11
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@networkpro/web",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.26.
|
|
4
|
+
"version": "1.26.15",
|
|
5
5
|
"description": "Locking Down Networks, Unlocking Confidence™ | Security, Networking, Privacy — Network Pro Strategies",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"advocacy",
|
|
@@ -89,33 +89,33 @@
|
|
|
89
89
|
"pre-push": "bash scripts/hooks/pre-push.sh"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"dompurify": "^3.3.
|
|
93
|
-
"posthog-js": "^1.
|
|
92
|
+
"dompurify": "^3.3.3",
|
|
93
|
+
"posthog-js": "^1.360.1",
|
|
94
94
|
"semver": "^7.7.4",
|
|
95
|
-
"svelte": "5.53.
|
|
95
|
+
"svelte": "5.53.11"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@eslint/compat": "^2.0.3",
|
|
99
|
-
"@eslint/js": "
|
|
99
|
+
"@eslint/js": "10.0.1",
|
|
100
100
|
"@lhci/cli": "^0.15.1",
|
|
101
101
|
"@playwright/test": "^1.58.2",
|
|
102
102
|
"@sveltejs/adapter-netlify": "^6.0.4",
|
|
103
103
|
"@sveltejs/adapter-vercel": "^6.3.3",
|
|
104
|
-
"@sveltejs/kit": "2.
|
|
105
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
104
|
+
"@sveltejs/kit": "2.54.0",
|
|
105
|
+
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
106
106
|
"@testing-library/jest-dom": "^6.9.1",
|
|
107
107
|
"@testing-library/svelte": "^5.3.1",
|
|
108
|
-
"@vitest/coverage-v8": "4.0
|
|
108
|
+
"@vitest/coverage-v8": "4.1.0",
|
|
109
109
|
"autoprefixer": "^10.4.27",
|
|
110
110
|
"browserslist": "^4.28.1",
|
|
111
|
-
"eslint": "
|
|
111
|
+
"eslint": "10.0.3",
|
|
112
112
|
"eslint-config-prettier": "^10.1.8",
|
|
113
|
-
"eslint-plugin-jsdoc": "^62.
|
|
114
|
-
"eslint-plugin-svelte": "^3.15.
|
|
113
|
+
"eslint-plugin-jsdoc": "^62.8.0",
|
|
114
|
+
"eslint-plugin-svelte": "^3.15.2",
|
|
115
115
|
"globals": "^17.4.0",
|
|
116
116
|
"globby": "^16.1.1",
|
|
117
117
|
"jsdom": "28.1.0",
|
|
118
|
-
"lightningcss": "^1.
|
|
118
|
+
"lightningcss": "^1.32.0",
|
|
119
119
|
"markdownlint": "^0.40.0",
|
|
120
120
|
"markdownlint-cli2": "0.21.0",
|
|
121
121
|
"npm-run-all": "^4.1.5",
|
|
@@ -127,16 +127,14 @@
|
|
|
127
127
|
"stylelint": "^17.4.0",
|
|
128
128
|
"stylelint-config-html": "^1.1.0",
|
|
129
129
|
"stylelint-config-recommended": "^18.0.0",
|
|
130
|
-
"stylelint-order": "^
|
|
130
|
+
"stylelint-order": "^8.0.0",
|
|
131
131
|
"svelte-check": "^4.4.5",
|
|
132
132
|
"svelte-eslint-parser": "^1.6.0",
|
|
133
133
|
"svelte-preprocess": "^6.0.3",
|
|
134
134
|
"typescript": "^5.9.3",
|
|
135
|
-
"vite": "^
|
|
136
|
-
"vite-plugin-devtools-json": "^1.0.0",
|
|
135
|
+
"vite": "^8.0.0",
|
|
137
136
|
"vite-plugin-lightningcss": "^0.0.5",
|
|
138
|
-
"
|
|
139
|
-
"vitest": "4.0.18"
|
|
137
|
+
"vitest": "4.1.0"
|
|
140
138
|
},
|
|
141
139
|
"overrides": {
|
|
142
140
|
"basic-ftp": "^5.2.0",
|
|
@@ -146,7 +144,7 @@
|
|
|
146
144
|
"lodash": "^4.17.23",
|
|
147
145
|
"minimatch": ">=10.2.1",
|
|
148
146
|
"qs": "^6.14.1",
|
|
149
|
-
"tar": "^7.5.
|
|
147
|
+
"tar": "^7.5.11",
|
|
150
148
|
"tmp": "^0.2.4"
|
|
151
149
|
}
|
|
152
150
|
}
|
package/scripts/checkEnv.js
CHANGED
|
@@ -12,10 +12,9 @@ This file is part of Network Pro.
|
|
|
12
12
|
*
|
|
13
13
|
* @module scripts/
|
|
14
14
|
* @author Scott Lopez
|
|
15
|
-
* @updated
|
|
15
|
+
* @updated 2026-03-12
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import { basename } from 'path';
|
|
19
18
|
import { fileURLToPath } from 'url';
|
|
20
19
|
|
|
21
20
|
const validEnvs = new Set(['dev', 'test', 'ci', 'prod', 'preview']);
|
|
@@ -30,9 +29,7 @@ const validEnvs = new Set(['dev', 'test', 'ci', 'prod', 'preview']);
|
|
|
30
29
|
* }}
|
|
31
30
|
*/
|
|
32
31
|
export function checkEnv() {
|
|
33
|
-
|
|
34
|
-
let mode = current;
|
|
35
|
-
let valid = false;
|
|
32
|
+
let mode = process.env.ENV_MODE;
|
|
36
33
|
let wasDefaulted = false;
|
|
37
34
|
|
|
38
35
|
if (!mode) {
|
|
@@ -42,14 +39,16 @@ export function checkEnv() {
|
|
|
42
39
|
console.warn("⚠️ ENV_MODE not set. Defaulting to 'dev'.");
|
|
43
40
|
}
|
|
44
41
|
|
|
45
|
-
|
|
42
|
+
const allowed = [...validEnvs].sort();
|
|
43
|
+
const valid = validEnvs.has(mode);
|
|
46
44
|
|
|
47
45
|
if (valid) {
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
console.log(
|
|
47
|
+
`${wasDefaulted ? '[info]' : '[ok]'} ENV_MODE is set to: "${mode}"`,
|
|
48
|
+
);
|
|
50
49
|
} else {
|
|
51
50
|
console.error(
|
|
52
|
-
`❌ Invalid ENV_MODE "${mode}". Must be one of: ${
|
|
51
|
+
`❌ Invalid ENV_MODE "${mode}". Must be one of: ${allowed.join(', ')}`,
|
|
53
52
|
);
|
|
54
53
|
}
|
|
55
54
|
|
|
@@ -57,11 +56,12 @@ export function checkEnv() {
|
|
|
57
56
|
mode,
|
|
58
57
|
valid,
|
|
59
58
|
wasDefaulted,
|
|
60
|
-
allowed
|
|
59
|
+
allowed,
|
|
61
60
|
};
|
|
62
61
|
}
|
|
63
62
|
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
const thisFile = fileURLToPath(import.meta.url);
|
|
64
|
+
|
|
65
|
+
if (process.argv[1] && thisFile === process.argv[1]) {
|
|
66
66
|
checkEnv();
|
|
67
67
|
}
|
package/src/app.html
CHANGED
|
@@ -53,7 +53,10 @@
|
|
|
53
53
|
content="bx4ham0zkpvzztzu213bhpt76m9siq" />
|
|
54
54
|
<!-- cspell:enable -->
|
|
55
55
|
|
|
56
|
-
<meta name="generator" content="SvelteKit 2.
|
|
56
|
+
<meta name="generator" content="SvelteKit 2.54.0" />
|
|
57
|
+
|
|
58
|
+
<!-- Temporary banner -->
|
|
59
|
+
<script src="https://keepandroidopen.org/banner.js" defer></script>
|
|
57
60
|
|
|
58
61
|
<script src="/disableSw.js"></script>
|
|
59
62
|
|
package/src/hooks.server.js
CHANGED
|
@@ -51,7 +51,7 @@ export async function handle({ event, resolve }) {
|
|
|
51
51
|
|
|
52
52
|
const cspDirectives = [
|
|
53
53
|
"default-src 'self';",
|
|
54
|
-
"script-src 'self' 'unsafe-inline' https://us.i.posthog.com https://us-assets.i.posthog.com;",
|
|
54
|
+
"script-src 'self' 'unsafe-inline' https://us.i.posthog.com https://us-assets.i.posthog.com https://keepandroidopen.org;",
|
|
55
55
|
"style-src 'self' 'unsafe-inline';",
|
|
56
56
|
"img-src 'self' data:;",
|
|
57
57
|
"connect-src 'self' https://us.i.posthog.com https://us-assets.i.posthog.com;",
|
|
@@ -66,7 +66,7 @@ export async function handle({ event, resolve }) {
|
|
|
66
66
|
// 🧪 Looser CSP for local/CI test environments
|
|
67
67
|
if (isDebug) {
|
|
68
68
|
cspDirectives[1] =
|
|
69
|
-
"script-src 'self' 'unsafe-inline' 'unsafe-eval' http://localhost:* ws://localhost
|
|
69
|
+
"script-src 'self' 'unsafe-inline' 'unsafe-eval' http://localhost:* ws://localhost:* https://keepandroidopen.org;";
|
|
70
70
|
cspDirectives[2] = "style-src 'self' 'unsafe-inline' http://localhost:*;";
|
|
71
71
|
cspDirectives[3] = "img-src 'self' data: http://localhost:*;";
|
|
72
72
|
cspDirectives[4] =
|
|
@@ -75,7 +75,8 @@ export async function handle({ event, resolve }) {
|
|
|
75
75
|
|
|
76
76
|
// 🧩 Hardened CSP for audit environment — no analytics, no CSP reporting
|
|
77
77
|
if (isAudit) {
|
|
78
|
-
cspDirectives[1] =
|
|
78
|
+
cspDirectives[1] =
|
|
79
|
+
"script-src 'self' 'unsafe-inline' https://keepandroidopen.org;";
|
|
79
80
|
cspDirectives[2] = "style-src 'self' 'unsafe-inline';";
|
|
80
81
|
cspDirectives[3] = "img-src 'self' data:;";
|
|
81
82
|
cspDirectives[4] = "connect-src 'self';";
|
package/src/service-worker.js
CHANGED
|
@@ -46,6 +46,7 @@ const IGNORE_PATHS = new Set([
|
|
|
46
46
|
'/webfonts/fa-brands-400.ttf',
|
|
47
47
|
'/webfonts/fa-solid-900.ttf',
|
|
48
48
|
'/7cbb39ce-750b-43da-83b8-8980e5554d4d.txt',
|
|
49
|
+
'/b173de6c44c144c1b186841b88d51c67.txt',
|
|
49
50
|
'/robots.txt',
|
|
50
51
|
'/sitemap.xml',
|
|
51
52
|
'/CNAME',
|
|
@@ -73,7 +74,7 @@ const ASSETS = [
|
|
|
73
74
|
if (isDev)
|
|
74
75
|
console.warn('[SW] URL parse failed, skipping path:', path, err);
|
|
75
76
|
excludedAssets.push(path);
|
|
76
|
-
return
|
|
77
|
+
return false;
|
|
77
78
|
}
|
|
78
79
|
}),
|
|
79
80
|
),
|
|
@@ -135,7 +136,9 @@ async function cacheAssetsSafely(cache, assets, required = []) {
|
|
|
135
136
|
: `[SW] Failed to cache ${asset}: Unknown error`;
|
|
136
137
|
|
|
137
138
|
if (isDev) {
|
|
138
|
-
throw
|
|
139
|
+
throw err instanceof Error
|
|
140
|
+
? new Error(msg, { cause: err })
|
|
141
|
+
: new Error(msg);
|
|
139
142
|
} else {
|
|
140
143
|
console.warn(msg);
|
|
141
144
|
}
|
|
@@ -163,10 +166,13 @@ sw.addEventListener('install', (event) => {
|
|
|
163
166
|
event.waitUntil(
|
|
164
167
|
(async () => {
|
|
165
168
|
const cache = await caches.open(CACHE);
|
|
166
|
-
let cachedPaths = [];
|
|
167
169
|
|
|
168
170
|
try {
|
|
169
|
-
cachedPaths = await cacheAssetsSafely(
|
|
171
|
+
const cachedPaths = await cacheAssetsSafely(
|
|
172
|
+
cache,
|
|
173
|
+
ASSETS,
|
|
174
|
+
REQUIRED_ASSETS,
|
|
175
|
+
);
|
|
170
176
|
if (isDev) console.log('[SW] Cached assets:', cachedPaths);
|
|
171
177
|
} catch (err) {
|
|
172
178
|
if (isDev) throw err;
|
package/vite.config.js
CHANGED
|
@@ -7,15 +7,14 @@ This file is part of Network Pro.
|
|
|
7
7
|
========================================================================= */
|
|
8
8
|
|
|
9
9
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
10
|
-
import { resolve } from 'node:path';
|
|
11
|
-
import { fileURLToPath } from 'node:url';
|
|
10
|
+
//import { resolve } from 'node:path';
|
|
11
|
+
//import { fileURLToPath } from 'node:url';
|
|
12
12
|
import { defineConfig } from 'vite';
|
|
13
|
-
import devtoolsJson from 'vite-plugin-devtools-json';
|
|
13
|
+
//import devtoolsJson from 'vite-plugin-devtools-json';
|
|
14
14
|
import lightningcssPlugin from 'vite-plugin-lightningcss';
|
|
15
|
-
import tsconfigPaths from 'vite-tsconfig-paths'; // tsconfig/jsconfig alias support
|
|
16
15
|
|
|
17
16
|
// Compute absolute project root
|
|
18
|
-
const projectRoot = fileURLToPath(new URL('.', import.meta.url));
|
|
17
|
+
//const projectRoot = fileURLToPath(new URL('.', import.meta.url));
|
|
19
18
|
|
|
20
19
|
export default defineConfig(({ mode }) => {
|
|
21
20
|
// --- 🧩 Log Build Environment Info -------------------------------------
|
|
@@ -49,13 +48,15 @@ export default defineConfig(({ mode }) => {
|
|
|
49
48
|
|
|
50
49
|
return {
|
|
51
50
|
envPrefix: ['PUBLIC_'],
|
|
51
|
+
resolve: {
|
|
52
|
+
tsconfigPaths: true,
|
|
53
|
+
},
|
|
52
54
|
plugins: [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}),
|
|
55
|
+
//devtoolsJson({
|
|
56
|
+
//projectRoot: resolve(projectRoot),
|
|
57
|
+
//normalizeForWindowsContainer: true,
|
|
58
|
+
//uuid: 'ad0db4f4-6172-4c1e-ae17-26b1bee53764',
|
|
59
|
+
//}),
|
|
59
60
|
sveltekit(),
|
|
60
61
|
lightningcssPlugin({
|
|
61
62
|
minify: ['production', 'audit'].includes(mode),
|