@nuxt/rspack-builder 3.16.2 → 3.17.0
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/README.md +1 -1
- package/dist/index.mjs +13 -10
- package/package.json +11 -12
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<a href="https://www.npmjs.com/package/nuxt"><img src="https://img.shields.io/npm/v/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="Version"></a>
|
|
7
7
|
<a href="https://www.npmjs.com/package/nuxt"><img src="https://img.shields.io/npm/dm/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="Downloads"></a>
|
|
8
8
|
<a href="https://github.com/nuxt/nuxt/tree/main/LICENSE"><img src="https://img.shields.io/github/license/nuxt/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="License"></a>
|
|
9
|
-
<a href="https://nuxt.com"><img src="https://img.shields.io/badge/Nuxt%20Docs-18181B?logo=nuxt
|
|
9
|
+
<a href="https://nuxt.com"><img src="https://img.shields.io/badge/Nuxt%20Docs-18181B?logo=nuxt" alt="Website"></a>
|
|
10
10
|
<a href="https://chat.nuxt.dev"><img src="https://img.shields.io/badge/Nuxt%20Discord-18181B?logo=discord" alt="Discord"></a>
|
|
11
11
|
<a href="https://securityscorecards.dev/"><img src="https://api.securityscorecards.dev/projects/github.com/nuxt/nuxt/badge" alt="Nuxt openssf scorecard score"></a>
|
|
12
12
|
</p>
|
package/dist/index.mjs
CHANGED
|
@@ -37,18 +37,21 @@ const DynamicBasePlugin = createUnplugin((options = {}) => {
|
|
|
37
37
|
return {
|
|
38
38
|
name: "nuxt:dynamic-base-path",
|
|
39
39
|
enforce: "post",
|
|
40
|
-
transform
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
transform: {
|
|
41
|
+
filter: {
|
|
42
|
+
id: { include: /entry/ },
|
|
43
|
+
code: { include: ENTRY_RE }
|
|
44
|
+
},
|
|
45
|
+
handler(code) {
|
|
46
|
+
const s = new MagicString(code);
|
|
47
|
+
s.prepend(`import { buildAssetsURL } from '#internal/nuxt/paths';
|
|
46
48
|
${options.globalPublicPath} = buildAssetsURL();
|
|
47
49
|
`);
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
return {
|
|
51
|
+
code: s.toString(),
|
|
52
|
+
map: options.sourcemap ? s.generateMap({ hires: true }) : void 0
|
|
53
|
+
};
|
|
54
|
+
}
|
|
52
55
|
}
|
|
53
56
|
};
|
|
54
57
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/rspack-builder",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.17.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@nuxt/friendly-errors-webpack-plugin": "^2.6.0",
|
|
30
|
-
"@rspack/core": "^1.3.
|
|
30
|
+
"@rspack/core": "^1.3.7",
|
|
31
31
|
"autoprefixer": "^10.4.21",
|
|
32
32
|
"css-loader": "^7.1.2",
|
|
33
33
|
"css-minimizer-webpack-plugin": "^7.0.2",
|
|
@@ -36,9 +36,8 @@
|
|
|
36
36
|
"esbuild-loader": "^4.3.0",
|
|
37
37
|
"escape-string-regexp": "^5.0.0",
|
|
38
38
|
"file-loader": "^6.2.0",
|
|
39
|
-
"fork-ts-checker-webpack-plugin": "^9.0
|
|
40
|
-
"
|
|
41
|
-
"h3": "^1.15.1",
|
|
39
|
+
"fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
40
|
+
"h3": "^1.15.2",
|
|
42
41
|
"jiti": "^2.4.2",
|
|
43
42
|
"knitwork": "^1.2.0",
|
|
44
43
|
"magic-string": "^0.30.17",
|
|
@@ -52,11 +51,11 @@
|
|
|
52
51
|
"postcss-loader": "^8.1.1",
|
|
53
52
|
"postcss-url": "^10.1.3",
|
|
54
53
|
"pug-plain-loader": "^1.1.0",
|
|
55
|
-
"std-env": "^3.
|
|
54
|
+
"std-env": "^3.9.0",
|
|
56
55
|
"time-fix-plugin": "^2.0.7",
|
|
57
|
-
"ufo": "^1.
|
|
56
|
+
"ufo": "^1.6.1",
|
|
58
57
|
"unenv": "^2.0.0-rc.15",
|
|
59
|
-
"unplugin": "^2.
|
|
58
|
+
"unplugin": "^2.3.2",
|
|
60
59
|
"url-loader": "^4.1.1",
|
|
61
60
|
"vue-bundle-renderer": "^2.1.1",
|
|
62
61
|
"vue-loader": "^17.4.2",
|
|
@@ -64,16 +63,16 @@
|
|
|
64
63
|
"webpack-dev-middleware": "^7.4.2",
|
|
65
64
|
"webpack-hot-middleware": "^2.26.1",
|
|
66
65
|
"webpackbar": "^7.0.0",
|
|
67
|
-
"@nuxt/kit": "3.
|
|
66
|
+
"@nuxt/kit": "3.17.0"
|
|
68
67
|
},
|
|
69
68
|
"devDependencies": {
|
|
70
69
|
"@types/pify": "6.1.0",
|
|
71
70
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
72
71
|
"@types/webpack-hot-middleware": "2.25.9",
|
|
73
|
-
"rollup": "4.
|
|
74
|
-
"unbuild": "
|
|
72
|
+
"rollup": "4.40.0",
|
|
73
|
+
"unbuild": "3.5.0",
|
|
75
74
|
"vue": "3.5.13",
|
|
76
|
-
"@nuxt/schema": "3.
|
|
75
|
+
"@nuxt/schema": "3.17.0"
|
|
77
76
|
},
|
|
78
77
|
"peerDependencies": {
|
|
79
78
|
"vue": "^3.3.4"
|