@rspack-canary/browser 1.6.1-canary-1ad35372-20251102173630 → 1.6.1-canary-2d78ee6c-20251103173443

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
@@ -53396,16 +53396,16 @@ function applyLimits(options, logger) {
53396
53396
  }
53397
53397
  if (void 0 === options.output.chunkLoading) options.output.chunkLoading = "import";
53398
53398
  if (options.output.library) options.output.library = void 0;
53399
- const { splitChunks } = options.optimization;
53400
- if (splitChunks) {
53399
+ let { splitChunks } = options.optimization;
53400
+ if (void 0 === splitChunks) splitChunks = options.optimization.splitChunks = {};
53401
+ if (false !== splitChunks) {
53401
53402
  splitChunks.chunks = "all";
53402
53403
  splitChunks.minSize = 0;
53403
53404
  splitChunks.maxAsyncRequests = 1 / 0;
53404
53405
  splitChunks.maxInitialRequests = 1 / 0;
53405
- if (splitChunks.cacheGroups) {
53406
- splitChunks.cacheGroups.default = false;
53407
- splitChunks.cacheGroups.defaultVendors = false;
53408
- }
53406
+ splitChunks.cacheGroups ??= {};
53407
+ splitChunks.cacheGroups.default = false;
53408
+ splitChunks.cacheGroups.defaultVendors = false;
53409
53409
  }
53410
53410
  }
53411
53411
  class EsmLibraryPlugin {
@@ -58126,7 +58126,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
58126
58126
  if ("object" == typeof rspackFuture) {
58127
58127
  D(rspackFuture, "bundlerInfo", {});
58128
58128
  if ("object" == typeof rspackFuture.bundlerInfo) {
58129
- D(rspackFuture.bundlerInfo, "version", "1.6.1-canary-1ad35372-20251102173630");
58129
+ D(rspackFuture.bundlerInfo, "version", "1.6.1-canary-2d78ee6c-20251103173443");
58130
58130
  D(rspackFuture.bundlerInfo, "bundler", "rspack");
58131
58131
  D(rspackFuture.bundlerInfo, "force", !library);
58132
58132
  }
@@ -62068,7 +62068,7 @@ class MultiStats {
62068
62068
  return obj;
62069
62069
  });
62070
62070
  if (childOptions.version) {
62071
- obj.rspackVersion = "1.6.1-canary-1ad35372-20251102173630";
62071
+ obj.rspackVersion = "1.6.1-canary-2d78ee6c-20251103173443";
62072
62072
  obj.version = "5.75.0";
62073
62073
  }
62074
62074
  if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
@@ -63373,7 +63373,7 @@ const SIMPLE_EXTRACTORS = {
63373
63373
  },
63374
63374
  version: (object)=>{
63375
63375
  object.version = "5.75.0";
63376
- object.rspackVersion = "1.6.1-canary-1ad35372-20251102173630";
63376
+ object.rspackVersion = "1.6.1-canary-2d78ee6c-20251103173443";
63377
63377
  },
63378
63378
  env: (object, _compilation, _context, { _env })=>{
63379
63379
  object.env = _env;
@@ -66339,7 +66339,7 @@ function transformSync(source, options) {
66339
66339
  const _options = JSON.stringify(options || {});
66340
66340
  return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
66341
66341
  }
66342
- const exports_rspackVersion = "1.6.1-canary-1ad35372-20251102173630";
66342
+ const exports_rspackVersion = "1.6.1-canary-2d78ee6c-20251103173443";
66343
66343
  const exports_version = "5.75.0";
66344
66344
  const exports_WebpackError = Error;
66345
66345
  const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
@@ -66433,6 +66433,9 @@ const ERROR_PREFIX = "Invalid Rspack configuration:";
66433
66433
  const validateContext = ({ context })=>{
66434
66434
  if (context && !(0, path_browserify.isAbsolute)(context)) throw new Error(`${ERROR_PREFIX} "context" must be an absolute path, get "${context}".`);
66435
66435
  };
66436
+ const validateOutputPath = ({ output })=>{
66437
+ if (output?.path && !(0, path_browserify.isAbsolute)(output.path)) throw new Error(`${ERROR_PREFIX} "output.path" must be an absolute path, get "${output.path}".`);
66438
+ };
66436
66439
  const validateSplitChunks = ({ optimization })=>{
66437
66440
  if (optimization?.splitChunks) {
66438
66441
  const { minChunks } = optimization.splitChunks;
@@ -66462,6 +66465,7 @@ const validateExternalUmd = ({ output, externals, externalsType })=>{
66462
66465
  };
66463
66466
  function validateRspackConfig(config) {
66464
66467
  validateContext(config);
66468
+ validateOutputPath(config);
66465
66469
  validateSplitChunks(config);
66466
66470
  validateExternalUmd(config);
66467
66471
  }
@@ -707,11 +707,11 @@ export interface JsBeforeEmitData {
707
707
  }
708
708
 
709
709
  export interface JsBuildMeta {
710
- strictEsmModule: boolean
711
- hasTopLevelAwait: boolean
712
- esm: boolean
713
- exportsType: 'unset' | 'default' | 'namespace' | 'flagged' | 'dynamic'
714
- defaultObject: 'false' | 'redirect' | JsBuildMetaDefaultObjectRedirectWarn
710
+ strictEsmModule?: boolean
711
+ hasTopLevelAwait?: boolean
712
+ esm?: boolean
713
+ exportsType?: undefined | 'unset' | 'default' | 'namespace' | 'flagged' | 'dynamic'
714
+ defaultObject?: undefined | 'false' | 'redirect' | JsBuildMetaDefaultObjectRedirectWarn
715
715
  sideEffectFree?: boolean
716
716
  exportsFinalName?: Array<[string, string]> | undefined
717
717
  }
@@ -2732,12 +2732,6 @@ export interface RawRslibPluginOptions {
2732
2732
  * @default `false`
2733
2733
  */
2734
2734
  interceptApiPlugin?: boolean
2735
- /**
2736
- * Use the compact runtime for dynamic import from `modern-module`, commonly used in CommonJS output.
2737
- * This field should not be set to `true` when using `modern-module` with ESM output, as it is already in use.
2738
- * @default `false`
2739
- */
2740
- compactExternalModuleDynamicImport?: boolean
2741
2735
  /**
2742
2736
  * Add shims for javascript/esm modules
2743
2737
  * @default `false`
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/browser",
3
- "version": "1.6.1-canary-1ad35372-20251102173630",
3
+ "version": "1.6.1-canary-2d78ee6c-20251103173443",
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.",