@rspack-canary/browser 1.7.2-canary-2ed15762-20260106174500 → 1.7.2-canary-f4c77913-20260107173928

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.
@@ -22,4 +22,4 @@ export declare enum RequestType {
22
22
  CompilationGetAssetPath = "CompilationGetAssetPath",
23
23
  CompilationGetAssetPathWithInfo = "CompilationGetAssetPathWithInfo"
24
24
  }
25
- export declare function run(): Promise<void>;
25
+ export declare function run(): Promise<never>;
package/dist/index.mjs CHANGED
@@ -54370,8 +54370,8 @@ class ModuleWarning extends lib_WebpackError {
54370
54370
  this.details = getErrorDetails(err);
54371
54371
  }
54372
54372
  }
54373
- async function service_run() {
54374
- throw new Error('Not support browser');
54373
+ function service_run() {
54374
+ return Promise.reject(new Error('Not support browser'));
54375
54375
  }
54376
54376
  class LoadingLoaderError extends Error {
54377
54377
  constructor(message){
@@ -56830,16 +56830,16 @@ class SubresourceIntegrityPlugin extends NativeSubresourceIntegrityPlugin {
56830
56830
  'async-node'
56831
56831
  ].includes(compiler.options.output.chunkLoading)) return;
56832
56832
  const hwpHooks = getHooks(compilation);
56833
- hwpHooks.beforeAssetTagGeneration.tapPromise(SubresourceIntegrityPlugin_PLUGIN_NAME, async (data)=>{
56833
+ hwpHooks.beforeAssetTagGeneration.tapPromise(SubresourceIntegrityPlugin_PLUGIN_NAME, (data)=>{
56834
56834
  self1.handleHwpPluginArgs(data);
56835
- return data;
56835
+ return Promise.resolve(data);
56836
56836
  });
56837
56837
  hwpHooks.alterAssetTagGroups.tapPromise({
56838
56838
  name: SubresourceIntegrityPlugin_PLUGIN_NAME,
56839
56839
  stage: 10000
56840
- }, async (data)=>{
56840
+ }, (data)=>{
56841
56841
  self1.handleHwpBodyTags(data, compiler.outputPath, compiler.options.output.crossOriginLoading);
56842
- return data;
56842
+ return Promise.resolve(data);
56843
56843
  });
56844
56844
  });
56845
56845
  }
@@ -58172,7 +58172,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
58172
58172
  if ('object' == typeof rspackFuture) {
58173
58173
  D(rspackFuture, 'bundlerInfo', {});
58174
58174
  if ('object' == typeof rspackFuture.bundlerInfo) {
58175
- D(rspackFuture.bundlerInfo, 'version', "1.7.2-canary-2ed15762-20260106174500");
58175
+ D(rspackFuture.bundlerInfo, 'version', "1.7.2-canary-f4c77913-20260107173928");
58176
58176
  D(rspackFuture.bundlerInfo, 'bundler', 'rspack');
58177
58177
  D(rspackFuture.bundlerInfo, 'force', !library);
58178
58178
  }
@@ -59786,16 +59786,15 @@ class ThreadsafeIntermediateNodeFS extends ThreadsafeOutputNodeFS {
59786
59786
  });
59787
59787
  this.read = memoizeFn(()=>{
59788
59788
  const readFn = fs.read.bind(fs);
59789
- return async (fd, length, position)=>{
59790
- new Promise((resolve)=>{
59789
+ return (fd, length, position)=>new Promise((resolve, reject)=>{
59791
59790
  readFn(fd, {
59792
59791
  position,
59793
59792
  length
59794
59793
  }, (err, _bytesRead, buffer)=>{
59795
- err ? resolve(err) : resolve(buffer);
59794
+ if (err) reject(err);
59795
+ else resolve(buffer);
59796
59796
  });
59797
59797
  });
59798
- };
59799
59798
  });
59800
59799
  this.readUntil = memoizeFn(()=>async (fd, delim, position)=>{
59801
59800
  const res = [];
@@ -60441,7 +60440,7 @@ class MultiStats {
60441
60440
  return obj;
60442
60441
  });
60443
60442
  if (childOptions.version) {
60444
- obj.rspackVersion = "1.7.2-canary-2ed15762-20260106174500";
60443
+ obj.rspackVersion = "1.7.2-canary-f4c77913-20260107173928";
60445
60444
  obj.version = "5.75.0";
60446
60445
  }
60447
60446
  if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
@@ -62273,7 +62272,7 @@ const SIMPLE_EXTRACTORS = {
62273
62272
  },
62274
62273
  version: (object)=>{
62275
62274
  object.version = "5.75.0";
62276
- object.rspackVersion = "1.7.2-canary-2ed15762-20260106174500";
62275
+ object.rspackVersion = "1.7.2-canary-f4c77913-20260107173928";
62277
62276
  },
62278
62277
  env: (object, _compilation, _context, { _env })=>{
62279
62278
  object.env = _env;
@@ -66940,7 +66939,7 @@ function transformSync(source, options) {
66940
66939
  const _options = JSON.stringify(options || {});
66941
66940
  return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
66942
66941
  }
66943
- const exports_rspackVersion = "1.7.2-canary-2ed15762-20260106174500";
66942
+ const exports_rspackVersion = "1.7.2-canary-f4c77913-20260107173928";
66944
66943
  const exports_version = "5.75.0";
66945
66944
  const exports_WebpackError = Error;
66946
66945
  const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
@@ -67003,7 +67002,7 @@ const exports_experiments = {
67003
67002
  },
67004
67003
  async cleanup () {
67005
67004
  await trace_JavaScriptTracer.cleanupJavaScriptTrace();
67006
- await (0, external_rspack_wasi_browser_js_.syncTraceEvent)(trace_JavaScriptTracer.events);
67005
+ (0, external_rspack_wasi_browser_js_.syncTraceEvent)(trace_JavaScriptTracer.events);
67007
67006
  (0, external_rspack_wasi_browser_js_.cleanupGlobalTrace)();
67008
67007
  }
67009
67008
  },
@@ -2790,6 +2790,7 @@ export interface RawRstestPluginOptions {
2790
2790
  importMetaPathName: boolean
2791
2791
  hoistMockModule: boolean
2792
2792
  manualMockRoot: string
2793
+ preserveNewUrl?: Array<string>
2793
2794
  }
2794
2795
 
2795
2796
  export interface RawRuleSetCondition {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/browser",
3
- "version": "1.7.2-canary-2ed15762-20260106174500",
3
+ "version": "1.7.2-canary-f4c77913-20260107173928",
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.",