@rspack-canary/browser 1.6.0-canary-34fbd33e-20251029061020 → 1.6.0-canary-7953269b-20251029094959

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 CHANGED
@@ -53387,14 +53387,32 @@ function EsmLibraryPlugin_define_property(obj, key, value) {
53387
53387
  else obj[key] = value;
53388
53388
  return obj;
53389
53389
  }
53390
+ function applyLimits(options, logger) {
53391
+ options.optimization.concatenateModules = false;
53392
+ options.output.chunkFormat = false;
53393
+ if (options.output.chunkLoading && "import" !== options.output.chunkLoading) {
53394
+ logger.warn(`\`output.chunkLoading\` should be \`"import"\` or \`false\`, but got ${options.output.chunkLoading}, changed it to \`"import"\``);
53395
+ options.output.chunkLoading = "import";
53396
+ }
53397
+ if (void 0 === options.output.chunkLoading) options.output.chunkLoading = "import";
53398
+ if (options.output.library) options.output.library = void 0;
53399
+ const { splitChunks } = options.optimization;
53400
+ if (splitChunks) {
53401
+ splitChunks.chunks = "all";
53402
+ splitChunks.minSize = 0;
53403
+ splitChunks.maxAsyncRequests = 1 / 0;
53404
+ splitChunks.maxInitialRequests = 1 / 0;
53405
+ if (splitChunks.cacheGroups) {
53406
+ splitChunks.cacheGroups.default = false;
53407
+ splitChunks.cacheGroups.defaultVendors = false;
53408
+ }
53409
+ }
53410
+ }
53390
53411
  class EsmLibraryPlugin {
53391
53412
  apply(compiler) {
53413
+ const logger = compiler.getInfrastructureLogger(EsmLibraryPlugin.PLUGIN_NAME);
53414
+ applyLimits(compiler.options, logger);
53392
53415
  new RemoveDuplicateModulesPlugin().apply(compiler);
53393
- const { splitChunks } = compiler.options.optimization;
53394
- if (splitChunks) {
53395
- splitChunks.chunks = "all";
53396
- splitChunks.minSize = 0;
53397
- }
53398
53416
  let err;
53399
53417
  if (err = checkConfig(compiler.options)) throw new src_0.WebpackError(`Conflicted config for ${EsmLibraryPlugin.PLUGIN_NAME}: ${err}`);
53400
53418
  compiler.__internal__registerBuiltinPlugin({
@@ -58107,7 +58125,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
58107
58125
  if ("object" == typeof rspackFuture) {
58108
58126
  D(rspackFuture, "bundlerInfo", {});
58109
58127
  if ("object" == typeof rspackFuture.bundlerInfo) {
58110
- D(rspackFuture.bundlerInfo, "version", "1.6.0-canary-34fbd33e-20251029061020");
58128
+ D(rspackFuture.bundlerInfo, "version", "1.6.0-canary-7953269b-20251029094959");
58111
58129
  D(rspackFuture.bundlerInfo, "bundler", "rspack");
58112
58130
  D(rspackFuture.bundlerInfo, "force", !library);
58113
58131
  }
@@ -62047,7 +62065,7 @@ class MultiStats {
62047
62065
  return obj;
62048
62066
  });
62049
62067
  if (childOptions.version) {
62050
- obj.rspackVersion = "1.6.0-canary-34fbd33e-20251029061020";
62068
+ obj.rspackVersion = "1.6.0-canary-7953269b-20251029094959";
62051
62069
  obj.version = "5.75.0";
62052
62070
  }
62053
62071
  if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
@@ -63352,7 +63370,7 @@ const SIMPLE_EXTRACTORS = {
63352
63370
  },
63353
63371
  version: (object)=>{
63354
63372
  object.version = "5.75.0";
63355
- object.rspackVersion = "1.6.0-canary-34fbd33e-20251029061020";
63373
+ object.rspackVersion = "1.6.0-canary-7953269b-20251029094959";
63356
63374
  },
63357
63375
  env: (object, _compilation, _context, { _env })=>{
63358
63376
  object.env = _env;
@@ -66318,7 +66336,7 @@ function transformSync(source, options) {
66318
66336
  const _options = JSON.stringify(options || {});
66319
66337
  return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
66320
66338
  }
66321
- const exports_rspackVersion = "1.6.0-canary-34fbd33e-20251029061020";
66339
+ const exports_rspackVersion = "1.6.0-canary-7953269b-20251029094959";
66322
66340
  const exports_version = "5.75.0";
66323
66341
  const exports_WebpackError = Error;
66324
66342
  const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/browser",
3
- "version": "1.6.0-canary-34fbd33e-20251029061020",
3
+ "version": "1.6.0-canary-7953269b-20251029094959",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",