@nuxt/webpack-builder-nightly 4.4.7-29652037.eb785fd0 → 4.5.0-29655888.a3f0c205

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.
Files changed (2) hide show
  1. package/dist/index.mjs +16 -4
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -586,7 +586,10 @@ function baseConfig(ctx) {
586
586
  ctx.config = defu({}, {
587
587
  name: ctx.name,
588
588
  entry: { app: [resolve(ctx.options.appDir, ctx.options.experimental.asyncEntry ? "entry.async" : "entry")] },
589
- module: { rules: [] },
589
+ module: {
590
+ rules: [],
591
+ ...builder === "rspack" ? { parser: { javascript: { exportsPresence: "auto" } } } : {}
592
+ },
590
593
  plugins: [],
591
594
  externals: [],
592
595
  optimization: {
@@ -942,7 +945,13 @@ var VueSSRClientPlugin = class {
942
945
  }
943
946
  apply(compiler) {
944
947
  compiler.hooks.afterEmit.tap("VueSSRClientPlugin", async (compilation) => {
945
- const stats = compilation.getStats().toJson();
948
+ const stats = compilation.getStats().toJson({
949
+ modules: true,
950
+ assets: true,
951
+ chunks: true,
952
+ chunkGroups: true,
953
+ entrypoints: true
954
+ });
946
955
  const context = this.nuxt.options.srcDir;
947
956
  const initialFiles = /* @__PURE__ */ new Set();
948
957
  for (const { assets } of Object.values(stats.entrypoints)) {
@@ -1025,7 +1034,10 @@ var VueSSRServerPlugin = class {
1025
1034
  name: "VueSSRServerPlugin",
1026
1035
  stage: webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL
1027
1036
  }, (assets, cb) => {
1028
- const stats = compilation.getStats().toJson();
1037
+ const stats = compilation.getStats().toJson({
1038
+ assets: true,
1039
+ entrypoints: true
1040
+ });
1029
1041
  const [entryName] = Object.keys(stats.entrypoints);
1030
1042
  const entryInfo = stats.entrypoints[entryName];
1031
1043
  if (!entryInfo) return cb();
@@ -1211,7 +1223,7 @@ function clientPlugins(ctx) {
1211
1223
  function node(ctx) {
1212
1224
  ctx.config.target = "node";
1213
1225
  ctx.config.node = false;
1214
- ctx.config.experiments.outputModule = true;
1226
+ if (builder !== "rspack") ctx.config.experiments.outputModule = true;
1215
1227
  ctx.config.output = {
1216
1228
  ...ctx.config.output,
1217
1229
  chunkFilename: "[name].mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/webpack-builder-nightly",
3
- "version": "4.4.7-29652037.eb785fd0",
3
+ "version": "4.5.0-29655888.a3f0c205",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -25,7 +25,7 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "@nuxt/friendly-errors-webpack-plugin": "^2.6.0",
28
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.4.7-29652037.eb785fd0",
28
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.5.0-29655888.a3f0c205",
29
29
  "@vue/compiler-sfc": "3.5.34",
30
30
  "autoprefixer": "^10.5.0",
31
31
  "css-loader": "^7.1.4",
@@ -68,8 +68,8 @@
68
68
  "webpackbar": "^7.0.0"
69
69
  },
70
70
  "devDependencies": {
71
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.4.7-29652037.eb785fd0",
72
- "@rspack/core": "1.7.11",
71
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.5.0-29655888.a3f0c205",
72
+ "@rspack/core": "2.0.3",
73
73
  "@types/webpack-bundle-analyzer": "4.7.0",
74
74
  "@types/webpack-hot-middleware": "2.25.12",
75
75
  "h3": "1.15.11",
@@ -79,7 +79,7 @@
79
79
  "vue": "3.5.34"
80
80
  },
81
81
  "peerDependencies": {
82
- "nuxt": "npm:nuxt-nightly@4.4.7-29652037.eb785fd0",
82
+ "nuxt": "npm:nuxt-nightly@4.5.0-29655888.a3f0c205",
83
83
  "vue": "^3.3.4"
84
84
  },
85
85
  "engines": {