@rspack-canary/core 1.6.0-canary-34fbd33e-20251029061020 → 1.6.0-canary-7c51f14d-20251029141007

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.js +11 -9
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -2300,10 +2300,12 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
2300
2300
  }
2301
2301
  apply(compiler) {
2302
2302
  var config;
2303
- let err;
2304
- new RemoveDuplicateModulesPlugin().apply(compiler);
2305
- let { splitChunks } = compiler.options.optimization;
2306
- if (splitChunks && (splitChunks.chunks = "all", splitChunks.minSize = 0), err = (config = compiler.options).optimization.concatenateModules ? "You should disable `config.optimization.concatenateModules`" : !1 !== config.output.chunkFormat ? "You should disable default chunkFormat by `config.output.chunkFormat = false`" : void 0) throw new src_0.WebpackError(`Conflicted config for ${EsmLibraryPlugin.PLUGIN_NAME}: ${err}`);
2303
+ let err, logger = compiler.getInfrastructureLogger(EsmLibraryPlugin.PLUGIN_NAME);
2304
+ if (!function(options, logger) {
2305
+ options.optimization.concatenateModules = !1, options.output.chunkFormat = !1, options.output.chunkLoading && "import" !== options.output.chunkLoading && (logger.warn(`\`output.chunkLoading\` should be \`"import"\` or \`false\`, but got ${options.output.chunkLoading}, changed it to \`"import"\``), options.output.chunkLoading = "import"), void 0 === options.output.chunkLoading && (options.output.chunkLoading = "import"), options.output.library && (options.output.library = void 0);
2306
+ let { splitChunks } = options.optimization;
2307
+ splitChunks && (splitChunks.chunks = "all", splitChunks.minSize = 0, splitChunks.maxAsyncRequests = 1 / 0, splitChunks.maxInitialRequests = 1 / 0, splitChunks.cacheGroups && (splitChunks.cacheGroups.default = !1, splitChunks.cacheGroups.defaultVendors = !1));
2308
+ }(compiler.options, logger), new RemoveDuplicateModulesPlugin().apply(compiler), err = (config = compiler.options).optimization.concatenateModules ? "You should disable `config.optimization.concatenateModules`" : !1 !== config.output.chunkFormat ? "You should disable default chunkFormat by `config.output.chunkFormat = false`" : void 0) throw new src_0.WebpackError(`Conflicted config for ${EsmLibraryPlugin.PLUGIN_NAME}: ${err}`);
2307
2309
  compiler.__internal__registerBuiltinPlugin({
2308
2310
  name: binding_.BuiltinPluginName.EsmLibraryPlugin,
2309
2311
  options: {
@@ -5745,7 +5747,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
5745
5747
  }, applyExperimentsDefaults = (experiments, { development })=>{
5746
5748
  F(experiments, "cache", ()=>development), D(experiments, "futureDefaults", !1), D(experiments, "lazyCompilation", !1), D(experiments, "asyncWebAssembly", experiments.futureDefaults), D(experiments, "css", !!experiments.futureDefaults || void 0), D(experiments, "topLevelAwait", !0), D(experiments, "deferImport", !1), D(experiments, "buildHttp", void 0), experiments.buildHttp && "object" == typeof experiments.buildHttp && D(experiments.buildHttp, "upgrade", !1), D(experiments, "incremental", {}), "object" == typeof experiments.incremental && (D(experiments.incremental, "silent", !0), D(experiments.incremental, "make", !0), D(experiments.incremental, "inferAsyncModules", !0), D(experiments.incremental, "providedExports", !0), D(experiments.incremental, "dependenciesDiagnostics", !0), D(experiments.incremental, "sideEffects", !0), D(experiments.incremental, "buildChunkGraph", !1), D(experiments.incremental, "moduleIds", !0), D(experiments.incremental, "chunkIds", !0), D(experiments.incremental, "modulesHashes", !0), D(experiments.incremental, "modulesCodegen", !0), D(experiments.incremental, "modulesRuntimeRequirements", !0), D(experiments.incremental, "chunksRuntimeRequirements", !0), D(experiments.incremental, "chunksHashes", !0), D(experiments.incremental, "chunksRender", !0), D(experiments.incremental, "emitAssets", !0)), D(experiments, "rspackFuture", {}), D(experiments, "parallelCodeSplitting", !1), D(experiments, "parallelLoader", !1), D(experiments, "useInputFileSystem", !1), D(experiments, "inlineConst", !1), D(experiments, "inlineEnum", !1), D(experiments, "typeReexportsPresence", !1), D(experiments, "lazyBarrel", !0);
5747
5749
  }, applybundlerInfoDefaults = (rspackFuture, library)=>{
5748
- "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.0-canary-34fbd33e-20251029061020"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
5750
+ "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.0-canary-7c51f14d-20251029141007"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
5749
5751
  }, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst, deferImport })=>{
5750
5752
  if (assertNotNill(module1.parser), assertNotNill(module1.generator), cache ? D(module1, "unsafeCache", /[\\/]node_modules[\\/]/) : D(module1, "unsafeCache", !1), F(module1.parser, "asset", ()=>({})), assertNotNill(module1.parser.asset), F(module1.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module1.parser.asset.dataUrlCondition && D(module1.parser.asset.dataUrlCondition, "maxSize", 8096), F(module1.parser, "javascript", ()=>({})), assertNotNill(module1.parser.javascript), ((parserOptions, { usedExports, inlineConst, deferImport })=>{
5751
5753
  D(parserOptions, "dynamicImportMode", "lazy"), D(parserOptions, "dynamicImportPrefetch", !1), D(parserOptions, "dynamicImportPreload", !1), D(parserOptions, "url", !0), D(parserOptions, "exprContextCritical", !0), D(parserOptions, "unknownContextCritical", !0), D(parserOptions, "wrappedContextCritical", !1), D(parserOptions, "wrappedContextRegExp", /.*/), D(parserOptions, "strictExportPresence", !1), D(parserOptions, "requireAsExpression", !0), D(parserOptions, "requireDynamic", !0), D(parserOptions, "requireResolve", !0), D(parserOptions, "commonjs", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
@@ -7391,7 +7393,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
7391
7393
  });
7392
7394
  }
7393
7395
  }
7394
- let CORE_VERSION = "1.6.0-canary-34fbd33e-20251029061020", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
7396
+ let CORE_VERSION = "1.6.0-canary-7c51f14d-20251029141007", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
7395
7397
 
7396
7398
  Help:
7397
7399
  Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
@@ -8682,7 +8684,7 @@ Help:
8682
8684
  obj.children = this.stats.map((stat, idx)=>{
8683
8685
  let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
8684
8686
  return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
8685
- }), childOptions.version && (obj.rspackVersion = "1.6.0-canary-34fbd33e-20251029061020", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
8687
+ }), childOptions.version && (obj.rspackVersion = "1.6.0-canary-7c51f14d-20251029141007", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
8686
8688
  let mapError = (j, obj)=>({
8687
8689
  ...obj,
8688
8690
  compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
@@ -9581,7 +9583,7 @@ Help:
9581
9583
  object.hash = context.getStatsCompilation(compilation).hash;
9582
9584
  },
9583
9585
  version: (object)=>{
9584
- object.version = "5.75.0", object.rspackVersion = "1.6.0-canary-34fbd33e-20251029061020";
9586
+ object.version = "5.75.0", object.rspackVersion = "1.6.0-canary-7c51f14d-20251029141007";
9585
9587
  },
9586
9588
  env: (object, _compilation, _context, { _env })=>{
9587
9589
  object.env = _env;
@@ -11685,7 +11687,7 @@ Help:
11685
11687
  let _options = JSON.stringify(options || {});
11686
11688
  return binding_default().transform(source, _options);
11687
11689
  }
11688
- let exports_rspackVersion = "1.6.0-canary-34fbd33e-20251029061020", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
11690
+ let exports_rspackVersion = "1.6.0-canary-7c51f14d-20251029141007", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
11689
11691
  getNormalizedRspackOptions: getNormalizedRspackOptions,
11690
11692
  applyRspackOptionsDefaults: applyRspackOptionsDefaults,
11691
11693
  getNormalizedWebpackOptions: getNormalizedRspackOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/core",
3
- "version": "1.6.0-canary-34fbd33e-20251029061020",
3
+ "version": "1.6.0-canary-7c51f14d-20251029141007",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "The fast Rust-based web bundler with webpack-compatible API",
@@ -58,7 +58,7 @@
58
58
  "dependencies": {
59
59
  "@module-federation/runtime-tools": "0.21.2",
60
60
  "@rspack/lite-tapable": "1.0.1",
61
- "@rspack/binding": "npm:@rspack-canary/binding@1.6.0-canary-34fbd33e-20251029061020"
61
+ "@rspack/binding": "npm:@rspack-canary/binding@1.6.0-canary-7c51f14d-20251029141007"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@swc/helpers": ">=0.5.1"