vitest-config-silverwind 11.3.2 → 11.3.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.js +3 -1
- package/package.json +8 -7
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { fileURLToPath } from "node:url";
|
|
|
3
3
|
import { accessSync, constants } from "node:fs";
|
|
4
4
|
import { readFile } from "node:fs/promises";
|
|
5
5
|
|
|
6
|
-
//#region node_modules/.pnpm/vite-string-plugin@2.0.4_vite@8.0.10_@types+node@25.6.
|
|
6
|
+
//#region node_modules/.pnpm/vite-string-plugin@2.0.4_vite@8.0.10_@types+node@25.6.2_/node_modules/vite-string-plugin/dist/index.js
|
|
7
7
|
/** Vite plugin to import files as string */
|
|
8
8
|
const stringPlugin = ({ match = /\.(svg|md|xml|txt)$/i } = {}) => ({
|
|
9
9
|
name: "vite-string-plugin",
|
|
@@ -96,9 +96,11 @@ function base({ url, test: { setupFiles = [], coverage: userCoverage, ...otherTe
|
|
|
96
96
|
...other
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
+
const happyDomExecArgv = Number(process.versions.node.split(".")[0]) >= 25 ? ["--no-experimental-webstorage"] : [];
|
|
99
100
|
const frontend = ({ test = {}, ...other } = defaultConfig) => base({
|
|
100
101
|
test: {
|
|
101
102
|
environment: "happy-dom",
|
|
103
|
+
execArgv: happyDomExecArgv,
|
|
102
104
|
...test
|
|
103
105
|
},
|
|
104
106
|
...other
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest-config-silverwind",
|
|
3
|
-
"version": "11.3.
|
|
3
|
+
"version": "11.3.4",
|
|
4
4
|
"description": "Shared vitest configuration",
|
|
5
5
|
"author": "silverwind <me@silverwind.io>",
|
|
6
6
|
"repository": "silverwind/vitest-config-silverwind",
|
|
@@ -31,17 +31,18 @@
|
|
|
31
31
|
"jest-extended": "7.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@types/node": "25.6.
|
|
35
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
34
|
+
"@types/node": "25.6.2",
|
|
35
|
+
"@typescript/native-preview": "7.0.0-dev.20260510.1",
|
|
36
36
|
"eslint": "10.3.0",
|
|
37
|
-
"eslint-config-silverwind": "133.0.
|
|
37
|
+
"eslint-config-silverwind": "133.0.1",
|
|
38
|
+
"happy-dom": "20.9.0",
|
|
38
39
|
"js-yaml": "4.1.1",
|
|
39
|
-
"tsdown": "0.
|
|
40
|
-
"tsdown-config-silverwind": "
|
|
40
|
+
"tsdown": "0.22.0",
|
|
41
|
+
"tsdown-config-silverwind": "3.0.1",
|
|
41
42
|
"typescript": "6.0.3",
|
|
42
43
|
"typescript-config-silverwind": "18.0.0",
|
|
43
44
|
"updates": "17.16.9",
|
|
44
|
-
"updates-config-silverwind": "
|
|
45
|
+
"updates-config-silverwind": "3.0.1",
|
|
45
46
|
"versions": "15.0.3",
|
|
46
47
|
"vite-plugin-dts": "5.0.0",
|
|
47
48
|
"vite-string-plugin": "2.0.4",
|