@vitest/browser 0.20.2 → 0.20.3
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.
|
@@ -41,14 +41,16 @@ const p = function polyfill() {
|
|
|
41
41
|
};
|
|
42
42
|
p();
|
|
43
43
|
const scriptRel = "modulepreload";
|
|
44
|
+
const assetsURL = function(dep) {
|
|
45
|
+
return "/" + dep;
|
|
46
|
+
};
|
|
44
47
|
const seen = {};
|
|
45
|
-
const
|
|
46
|
-
const __vitePreload = function preload(baseModule, deps) {
|
|
48
|
+
const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
47
49
|
if (!deps || deps.length === 0) {
|
|
48
50
|
return baseModule();
|
|
49
51
|
}
|
|
50
52
|
return Promise.all(deps.map((dep) => {
|
|
51
|
-
dep =
|
|
53
|
+
dep = assetsURL(dep);
|
|
52
54
|
if (dep in seen)
|
|
53
55
|
return;
|
|
54
56
|
seen[dep] = true;
|
package/dist/client/index.html
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest/browser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.20.
|
|
4
|
+
"version": "0.20.3",
|
|
5
5
|
"description": "Browser running for Vitest",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"stubs"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"local-pkg": "^0.4.
|
|
28
|
-
"mlly": "^0.5.
|
|
27
|
+
"local-pkg": "^0.4.2",
|
|
28
|
+
"mlly": "^0.5.5",
|
|
29
29
|
"modern-node-polyfills": "^0.0.7",
|
|
30
30
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
31
31
|
"sirv": "^2.0.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@types/ws": "^8.
|
|
35
|
-
"@vitest/ws-client": "0.20.
|
|
34
|
+
"@types/ws": "^8.5.3",
|
|
35
|
+
"@vitest/ws-client": "0.20.3",
|
|
36
36
|
"picocolors": "^1.0.0",
|
|
37
|
-
"rollup": "^2.
|
|
38
|
-
"vitest": "0.20.
|
|
37
|
+
"rollup": "^2.77.2",
|
|
38
|
+
"vitest": "0.20.3"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "rimraf dist && pnpm build:node && pnpm build:client && pnpm copy",
|