@rspack-canary/browser 1.7.2-canary-29642b28-20260108182846 → 1.7.2-canary-6ee0d4b1-20260110181602

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.
@@ -851,6 +851,11 @@ export type JavascriptParserOptions = {
851
851
  worker?: string[] | boolean;
852
852
  /** Override the module to strict or non-strict. */
853
853
  overrideStrict?: 'strict' | 'non-strict';
854
+ /**
855
+ * Control whether renaming of the CommonJS `require` function will be parsed and transformed.
856
+ * @default true
857
+ */
858
+ requireAlias?: boolean;
854
859
  requireAsExpression?: boolean;
855
860
  requireDynamic?: boolean;
856
861
  requireResolve?: boolean;
package/dist/index.mjs CHANGED
@@ -55648,6 +55648,7 @@ function getRawJavascriptParserOptions(parser) {
55648
55648
  ] : [] : parser.worker,
55649
55649
  overrideStrict: parser.overrideStrict,
55650
55650
  requireAsExpression: parser.requireAsExpression,
55651
+ requireAlias: parser.requireAlias,
55651
55652
  requireDynamic: parser.requireDynamic,
55652
55653
  requireResolve: parser.requireResolve,
55653
55654
  commonjs: parser.commonjs,
@@ -58204,7 +58205,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
58204
58205
  if ('object' == typeof rspackFuture) {
58205
58206
  D(rspackFuture, 'bundlerInfo', {});
58206
58207
  if ('object' == typeof rspackFuture.bundlerInfo) {
58207
- D(rspackFuture.bundlerInfo, 'version', "1.7.2-canary-29642b28-20260108182846");
58208
+ D(rspackFuture.bundlerInfo, 'version', "1.7.2-canary-6ee0d4b1-20260110181602");
58208
58209
  D(rspackFuture.bundlerInfo, 'bundler', 'rspack');
58209
58210
  D(rspackFuture.bundlerInfo, 'force', !library);
58210
58211
  }
@@ -58222,6 +58223,7 @@ const applyJavascriptParserOptionsDefaults = (parserOptions, { deferImport })=>{
58222
58223
  D(parserOptions, 'wrappedContextRegExp', /.*/);
58223
58224
  D(parserOptions, 'strictExportPresence', false);
58224
58225
  D(parserOptions, 'requireAsExpression', true);
58226
+ D(parserOptions, 'requireAlias', true);
58225
58227
  D(parserOptions, 'requireDynamic', true);
58226
58228
  D(parserOptions, 'requireResolve', true);
58227
58229
  D(parserOptions, 'commonjs', true);
@@ -60472,7 +60474,7 @@ class MultiStats {
60472
60474
  return obj;
60473
60475
  });
60474
60476
  if (childOptions.version) {
60475
- obj.rspackVersion = "1.7.2-canary-29642b28-20260108182846";
60477
+ obj.rspackVersion = "1.7.2-canary-6ee0d4b1-20260110181602";
60476
60478
  obj.version = "5.75.0";
60477
60479
  }
60478
60480
  if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
@@ -62304,7 +62306,7 @@ const SIMPLE_EXTRACTORS = {
62304
62306
  },
62305
62307
  version: (object)=>{
62306
62308
  object.version = "5.75.0";
62307
- object.rspackVersion = "1.7.2-canary-29642b28-20260108182846";
62309
+ object.rspackVersion = "1.7.2-canary-6ee0d4b1-20260110181602";
62308
62310
  },
62309
62311
  env: (object, _compilation, _context, { _env })=>{
62310
62312
  object.env = _env;
@@ -66974,7 +66976,7 @@ function transformSync(source, options) {
66974
66976
  const _options = JSON.stringify(options || {});
66975
66977
  return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
66976
66978
  }
66977
- const exports_rspackVersion = "1.7.2-canary-29642b28-20260108182846";
66979
+ const exports_rspackVersion = "1.7.2-canary-6ee0d4b1-20260110181602";
66978
66980
  const exports_version = "5.75.0";
66979
66981
  const exports_WebpackError = Error;
66980
66982
  const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
@@ -2339,6 +2339,11 @@ export interface RawJavascriptParserOptions {
2339
2339
  worker?: Array<string>
2340
2340
  overrideStrict?: string
2341
2341
  importMeta?: boolean
2342
+ /**
2343
+ * This option is experimental in Rspack only and subject to change or be removed anytime.
2344
+ * @experimental
2345
+ */
2346
+ requireAlias?: boolean
2342
2347
  /**
2343
2348
  * This option is experimental in Rspack only and subject to change or be removed anytime.
2344
2349
  * @experimental
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/browser",
3
- "version": "1.7.2-canary-29642b28-20260108182846",
3
+ "version": "1.7.2-canary-6ee0d4b1-20260110181602",
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.",