@rspack/browser 1.6.5 → 1.6.7

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.
@@ -11,7 +11,9 @@ export declare class LoaderObject {
11
11
  pitch?: Function;
12
12
  raw?: boolean;
13
13
  type?: "module" | "commonjs";
14
- parallel?: boolean;
14
+ parallel?: boolean | {
15
+ maxWorkers?: number;
16
+ };
15
17
  /**
16
18
  * @internal This field is rspack internal. Do not edit.
17
19
  */
@@ -67,5 +67,7 @@ export type WorkerError = Error;
67
67
  export declare function serializeError(error: unknown): WorkerError;
68
68
  export declare const run: (loaderName: string, task: any, options: RunOptions & {
69
69
  handleIncomingRequest: HandleIncomingRequest;
70
+ }, workerOptions?: {
71
+ maxWorkers?: number;
70
72
  }) => Promise<WorkerArgs>;
71
73
  export {};
@@ -2086,6 +2086,7 @@ export interface RawEntryDynamicResult {
2086
2086
 
2087
2087
  export interface RawEnvironment {
2088
2088
  const?: boolean
2089
+ methodShorthand?: boolean
2089
2090
  arrowFunction?: boolean
2090
2091
  nodePrefixForCoreModules?: boolean
2091
2092
  asyncFunction?: boolean
@@ -2099,6 +2100,7 @@ export interface RawEnvironment {
2099
2100
  optionalChaining?: boolean
2100
2101
  templateLiteral?: boolean
2101
2102
  dynamicImportInWorker?: boolean
2103
+ importMetaDirnameAndFilename?: boolean
2102
2104
  }
2103
2105
 
2104
2106
  export interface RawEsmLibraryPlugin {
Binary file
@@ -1,6 +1,6 @@
1
1
  /*! For license information please see wasi-worker-browser.mjs.LICENSE.txt */
2
2
  var __webpack_modules__ = {
3
- "../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js": function(module) {
3
+ "../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js" (module) {
4
4
  var process = module.exports = {};
5
5
  var cachedSetTimeout;
6
6
  var cachedClearTimeout;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/browser",
3
- "version": "1.6.5",
3
+ "version": "1.6.7",
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.",