@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.
- package/dist/Compilation.d.ts +1 -1
- package/dist/RuntimeGlobals.d.ts +106 -78
- package/dist/builtin-plugin/css-extract/loader.d.ts +4 -4
- package/dist/config/target.d.ts +2 -0
- package/dist/config/types.d.ts +23 -3
- package/dist/index.mjs +693 -462
- package/dist/loader-runner/index.d.ts +3 -1
- package/dist/loader-runner/service.d.ts +2 -0
- package/dist/napi-binding.d.ts +2 -0
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/wasi-worker-browser.mjs +1 -1
- package/package.json +1 -1
|
@@ -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 {};
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -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"
|
|
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