@nuxt/webpack-builder-nightly 4.4.7-29652887.e4d5cc70 → 4.5.0-29657113.e77d3dbf

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 +17 -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: {
@@ -724,6 +727,7 @@ function getEnv(ctx) {
724
727
  "import.meta.test": ctx.nuxt.options.test,
725
728
  "import.meta.browser": ctx.isClient,
726
729
  "import.meta.client": ctx.isClient,
730
+ "import.meta.envName": JSON.stringify(ctx.options.envName),
727
731
  "import.meta.server": ctx.isServer
728
732
  };
729
733
  if (ctx.isClient) {
@@ -942,7 +946,13 @@ var VueSSRClientPlugin = class {
942
946
  }
943
947
  apply(compiler) {
944
948
  compiler.hooks.afterEmit.tap("VueSSRClientPlugin", async (compilation) => {
945
- const stats = compilation.getStats().toJson();
949
+ const stats = compilation.getStats().toJson({
950
+ modules: true,
951
+ assets: true,
952
+ chunks: true,
953
+ chunkGroups: true,
954
+ entrypoints: true
955
+ });
946
956
  const context = this.nuxt.options.srcDir;
947
957
  const initialFiles = /* @__PURE__ */ new Set();
948
958
  for (const { assets } of Object.values(stats.entrypoints)) {
@@ -1025,7 +1035,10 @@ var VueSSRServerPlugin = class {
1025
1035
  name: "VueSSRServerPlugin",
1026
1036
  stage: webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL
1027
1037
  }, (assets, cb) => {
1028
- const stats = compilation.getStats().toJson();
1038
+ const stats = compilation.getStats().toJson({
1039
+ assets: true,
1040
+ entrypoints: true
1041
+ });
1029
1042
  const [entryName] = Object.keys(stats.entrypoints);
1030
1043
  const entryInfo = stats.entrypoints[entryName];
1031
1044
  if (!entryInfo) return cb();
@@ -1211,7 +1224,7 @@ function clientPlugins(ctx) {
1211
1224
  function node(ctx) {
1212
1225
  ctx.config.target = "node";
1213
1226
  ctx.config.node = false;
1214
- ctx.config.experiments.outputModule = true;
1227
+ if (builder !== "rspack") ctx.config.experiments.outputModule = true;
1215
1228
  ctx.config.output = {
1216
1229
  ...ctx.config.output,
1217
1230
  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-29652887.e4d5cc70",
3
+ "version": "4.5.0-29657113.e77d3dbf",
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-29652887.e4d5cc70",
28
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.5.0-29657113.e77d3dbf",
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-29652887.e4d5cc70",
72
- "@rspack/core": "1.7.11",
71
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.5.0-29657113.e77d3dbf",
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-29652887.e4d5cc70",
82
+ "nuxt": "npm:nuxt-nightly@4.5.0-29657113.e77d3dbf",
83
83
  "vue": "^3.3.4"
84
84
  },
85
85
  "engines": {