@nuxt/rspack-builder-nightly 4.0.0-29124515.fa3c2087 → 4.0.0-29124584.7decdf49
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 -5
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -967,13 +967,15 @@ function serverStandalone(ctx) {
|
|
|
967
967
|
"#",
|
|
968
968
|
...ctx.options.build.transpile
|
|
969
969
|
];
|
|
970
|
-
const external = [
|
|
970
|
+
const external = /* @__PURE__ */ new Set([
|
|
971
971
|
"nitro/runtime",
|
|
972
972
|
"#shared",
|
|
973
973
|
resolve(ctx.nuxt.options.rootDir, ctx.nuxt.options.dir.shared)
|
|
974
|
-
];
|
|
974
|
+
]);
|
|
975
975
|
if (!ctx.nuxt.options.dev) {
|
|
976
|
-
external.
|
|
976
|
+
external.add("#internal/nuxt/paths");
|
|
977
|
+
external.add("#internal/nuxt/app-config");
|
|
978
|
+
external.add("#app-manifest");
|
|
977
979
|
}
|
|
978
980
|
if (!Array.isArray(ctx.config.externals)) {
|
|
979
981
|
return;
|
|
@@ -982,7 +984,7 @@ function serverStandalone(ctx) {
|
|
|
982
984
|
if (!request) {
|
|
983
985
|
return cb(void 0, false);
|
|
984
986
|
}
|
|
985
|
-
if (external.
|
|
987
|
+
if (external.has(request)) {
|
|
986
988
|
return cb(void 0, true);
|
|
987
989
|
}
|
|
988
990
|
if (request[0] === "." || isAbsolute(request) || inline.find((prefix) => typeof prefix === "string" && request.startsWith(prefix)) || assetPattern.test(request)) {
|
|
@@ -1011,6 +1013,7 @@ const HELPER_DYNAMIC = `\0${PLUGIN_NAME}.mjs`;
|
|
|
1011
1013
|
const DYNAMIC_REQUIRE_RE = /import\((?:.*\+\s*)?"\.\/" ?\+(.*)\).then/g;
|
|
1012
1014
|
const BACKWARD_SLASH_RE = /\\/g;
|
|
1013
1015
|
function dynamicRequire({ dir, ignore, inline }) {
|
|
1016
|
+
const filesToIgnore = new Set(ignore);
|
|
1014
1017
|
return {
|
|
1015
1018
|
name: PLUGIN_NAME,
|
|
1016
1019
|
transform(code, _id) {
|
|
@@ -1038,7 +1041,7 @@ function dynamicRequire({ dir, ignore, inline }) {
|
|
|
1038
1041
|
let files = [];
|
|
1039
1042
|
try {
|
|
1040
1043
|
const wpManifest = resolve(dir, "./server.manifest.json");
|
|
1041
|
-
files = await importModule(wpManifest).then((r) => Object.keys(r.files).filter((file) => !
|
|
1044
|
+
files = await importModule(wpManifest).then((r) => Object.keys(r.files).filter((file) => !filesToIgnore.has(file)));
|
|
1042
1045
|
} catch {
|
|
1043
1046
|
files = await glob("**/*.{cjs,mjs,js}", {
|
|
1044
1047
|
cwd: dir,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/rspack-builder-nightly",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-29124584.7decdf49",
|
|
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
|
-
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.0.0-
|
|
30
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.0.0-29124584.7decdf49",
|
|
31
31
|
"@rspack/core": "^1.3.9",
|
|
32
32
|
"autoprefixer": "^10.4.21",
|
|
33
33
|
"css-loader": "^7.1.2",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"webpackbar": "^7.0.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.0.0-
|
|
70
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.0.0-29124584.7decdf49",
|
|
71
71
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
72
72
|
"@types/webpack-hot-middleware": "2.25.9",
|
|
73
73
|
"rollup": "4.40.2",
|