@marko/vite 4.1.10 → 4.1.12
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.mjs +8 -11
- package/package.json +15 -15
package/dist/index.mjs
CHANGED
|
@@ -222,8 +222,7 @@ function serialize(basePath, nodes, preload, parts) {
|
|
|
222
222
|
return parts;
|
|
223
223
|
}
|
|
224
224
|
function stripBasePath(basePath, path6) {
|
|
225
|
-
if (path6.startsWith(basePath))
|
|
226
|
-
return path6.slice(basePath.length);
|
|
225
|
+
if (path6.startsWith(basePath)) return path6.slice(basePath.length);
|
|
227
226
|
return path6;
|
|
228
227
|
}
|
|
229
228
|
|
|
@@ -727,6 +726,8 @@ function markoPlugin(opts = {}) {
|
|
|
727
726
|
baseConfig = {
|
|
728
727
|
cache,
|
|
729
728
|
optimize,
|
|
729
|
+
// optimizedRegistryIds:
|
|
730
|
+
// optimize && linked ? optimizedRegistryIds : undefined,
|
|
730
731
|
runtimeId,
|
|
731
732
|
sourceMaps: true,
|
|
732
733
|
writeVersionComment: false,
|
|
@@ -870,7 +871,7 @@ function markoPlugin(opts = {}) {
|
|
|
870
871
|
resolve: {
|
|
871
872
|
alias: [
|
|
872
873
|
{
|
|
873
|
-
find:
|
|
874
|
+
find: /^~(?!\/)/,
|
|
874
875
|
replacement: ""
|
|
875
876
|
}
|
|
876
877
|
]
|
|
@@ -1000,8 +1001,7 @@ function markoPlugin(opts = {}) {
|
|
|
1000
1001
|
const resolved = normalizePath(
|
|
1001
1002
|
path5.resolve(importer, "..", importee)
|
|
1002
1003
|
);
|
|
1003
|
-
if (resolved === normalizePath(importer))
|
|
1004
|
-
return resolved;
|
|
1004
|
+
if (resolved === normalizePath(importer)) return resolved;
|
|
1005
1005
|
}
|
|
1006
1006
|
return this.resolve(importee, importer, resolveOpts);
|
|
1007
1007
|
}
|
|
@@ -1285,18 +1285,15 @@ function isEmpty(obj) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
function stripVersionAndTimeStamp(id) {
|
|
1287
1287
|
const queryStart = id.indexOf("?");
|
|
1288
|
-
if (queryStart === -1)
|
|
1289
|
-
return id;
|
|
1288
|
+
if (queryStart === -1) return id;
|
|
1290
1289
|
const url = id.slice(0, queryStart);
|
|
1291
1290
|
const query = id.slice(queryStart + 1).replace(/(?:^|[&])[vt]=[^&]+/g, "");
|
|
1292
|
-
if (query)
|
|
1293
|
-
return `${url}?${query}`;
|
|
1291
|
+
if (query) return `${url}?${query}`;
|
|
1294
1292
|
return url;
|
|
1295
1293
|
}
|
|
1296
1294
|
function getConfigForFileSystem(info, config) {
|
|
1297
1295
|
const fileSystem = info?.meta.arcFS;
|
|
1298
|
-
if (!fileSystem)
|
|
1299
|
-
return config;
|
|
1296
|
+
if (!fileSystem) return config;
|
|
1300
1297
|
let configsForFileSystem = configsByFileSystem.get(fileSystem);
|
|
1301
1298
|
if (!configsForFileSystem) {
|
|
1302
1299
|
configsForFileSystem = /* @__PURE__ */ new Map();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/vite",
|
|
3
3
|
"description": "A Marko plugin for Vite",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.12",
|
|
5
5
|
"author": "Dylan Piercey <dpiercey@ebay.com>",
|
|
6
6
|
"bugs": "https://github.com/marko-js/vite/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -15,37 +15,37 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@changesets/changelog-github": "^0.5.0",
|
|
18
|
-
"@changesets/cli": "^2.27.
|
|
19
|
-
"@marko/compiler": "^5.
|
|
18
|
+
"@changesets/cli": "^2.27.5",
|
|
19
|
+
"@marko/compiler": "^5.37.0",
|
|
20
20
|
"@marko/fixture-snapshots": "^2.2.1",
|
|
21
21
|
"@marko/testing-library": "^6.2.0",
|
|
22
22
|
"@types/babel__core": "^7.20.5",
|
|
23
23
|
"@types/jsdom": "^21.1.6",
|
|
24
24
|
"@types/mocha": "^10.0.6",
|
|
25
|
-
"@types/node": "^20.
|
|
25
|
+
"@types/node": "^20.12.12",
|
|
26
26
|
"@types/resolve": "^1.20.6",
|
|
27
27
|
"@types/serve-handler": "^6.1.4",
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
29
|
-
"@typescript-eslint/parser": "^7.
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
|
29
|
+
"@typescript-eslint/parser": "^7.11.0",
|
|
30
30
|
"cross-env": "^7.0.3",
|
|
31
|
-
"esbuild": "^0.
|
|
31
|
+
"esbuild": "^0.21.4",
|
|
32
32
|
"eslint": "^8.57.0",
|
|
33
33
|
"eslint-config-prettier": "^9.1.0",
|
|
34
34
|
"fixpack": "^4.0.0",
|
|
35
35
|
"husky": "^9.0.11",
|
|
36
|
-
"jsdom": "^24.
|
|
36
|
+
"jsdom": "^24.1.0",
|
|
37
37
|
"less": "^4.2.0",
|
|
38
|
-
"lint-staged": "^15.2.
|
|
39
|
-
"marko": "^5.
|
|
40
|
-
"mocha": "^10.
|
|
38
|
+
"lint-staged": "^15.2.5",
|
|
39
|
+
"marko": "^5.35.0",
|
|
40
|
+
"mocha": "^10.4.0",
|
|
41
41
|
"mocha-snap": "^5.0.0",
|
|
42
42
|
"nyc": "^15.1.0",
|
|
43
|
-
"playwright": "^1.
|
|
43
|
+
"playwright": "^1.44.1",
|
|
44
44
|
"prettier": "^3.2.5",
|
|
45
45
|
"serve-handler": "^6.1.5",
|
|
46
|
-
"tsx": "^4.
|
|
47
|
-
"typescript": "^5.
|
|
48
|
-
"vite": "^5.
|
|
46
|
+
"tsx": "^4.11.0",
|
|
47
|
+
"typescript": "^5.4.5",
|
|
48
|
+
"vite": "^5.2.12"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
51
|
"dist",
|