@rspack/browser 1.5.3 → 1.5.5
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 +470 -473
- package/dist/napi-binding.d.ts +1 -1
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/schema/config.d.ts +7 -7
- package/dist/schema/utils.d.ts +1 -0
- package/package.json +3 -3
package/dist/napi-binding.d.ts
CHANGED
|
@@ -1538,7 +1538,7 @@ export interface NapiResolveOptions {
|
|
|
1538
1538
|
* Create aliases to import or require certain modules more easily.
|
|
1539
1539
|
* A trailing $ can also be added to the given object's keys to signify an exact match.
|
|
1540
1540
|
*/
|
|
1541
|
-
alias?: Record<string,
|
|
1541
|
+
alias?: Record<string, string | false | string[]>
|
|
1542
1542
|
/**
|
|
1543
1543
|
* A list of alias fields in description files.
|
|
1544
1544
|
* Specify a field, such as `browser`, to be parsed according to [this specification](https://github.com/defunctzombie/package-browser-field-spec).
|
|
Binary file
|
package/dist/schema/config.d.ts
CHANGED
|
@@ -554,16 +554,16 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
554
554
|
groupModulesByAttributes: z.ZodOptional<z.ZodBoolean>;
|
|
555
555
|
groupModulesByPath: z.ZodOptional<z.ZodBoolean>;
|
|
556
556
|
groupModulesByExtension: z.ZodOptional<z.ZodBoolean>;
|
|
557
|
-
modulesSpace: z.ZodOptional<z.ZodInt
|
|
558
|
-
chunkModulesSpace: z.ZodOptional<z.ZodInt
|
|
559
|
-
nestedModulesSpace: z.ZodOptional<z.ZodInt
|
|
557
|
+
modulesSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
558
|
+
chunkModulesSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
559
|
+
nestedModulesSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
560
560
|
relatedAssets: z.ZodOptional<z.ZodBoolean>;
|
|
561
561
|
groupAssetsByEmitStatus: z.ZodOptional<z.ZodBoolean>;
|
|
562
562
|
groupAssetsByInfo: z.ZodOptional<z.ZodBoolean>;
|
|
563
563
|
groupAssetsByPath: z.ZodOptional<z.ZodBoolean>;
|
|
564
564
|
groupAssetsByExtension: z.ZodOptional<z.ZodBoolean>;
|
|
565
565
|
groupAssetsByChunk: z.ZodOptional<z.ZodBoolean>;
|
|
566
|
-
assetsSpace: z.ZodOptional<z.ZodInt
|
|
566
|
+
assetsSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
567
567
|
orphanModules: z.ZodOptional<z.ZodBoolean>;
|
|
568
568
|
excludeModules: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>, z.ZodString]>, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>, z.ZodBoolean]>>;
|
|
569
569
|
excludeAssets: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>, z.ZodString]>, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>;
|
|
@@ -581,7 +581,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
581
581
|
chunkOrigins: z.ZodOptional<z.ZodBoolean>;
|
|
582
582
|
runtime: z.ZodOptional<z.ZodBoolean>;
|
|
583
583
|
depth: z.ZodOptional<z.ZodBoolean>;
|
|
584
|
-
reasonsSpace: z.ZodOptional<z.ZodInt
|
|
584
|
+
reasonsSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
585
585
|
groupReasonsByOrigin: z.ZodOptional<z.ZodBoolean>;
|
|
586
586
|
errorDetails: z.ZodOptional<z.ZodBoolean>;
|
|
587
587
|
errorStack: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -589,8 +589,8 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
589
589
|
cachedModules: z.ZodOptional<z.ZodBoolean>;
|
|
590
590
|
cachedAssets: z.ZodOptional<z.ZodBoolean>;
|
|
591
591
|
cached: z.ZodOptional<z.ZodBoolean>;
|
|
592
|
-
errorsSpace: z.ZodOptional<z.ZodInt
|
|
593
|
-
warningsSpace: z.ZodOptional<z.ZodInt
|
|
592
|
+
errorsSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
593
|
+
warningsSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
594
594
|
}, z.core.$strict>]>>;
|
|
595
595
|
snapshot: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
596
596
|
optimization: z.ZodOptional<z.ZodObject<{
|
package/dist/schema/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
export declare const numberOrInfinity: z.ZodUnion<[z.ZodNumber, z.ZodLiteral<number>]>;
|
|
3
|
+
export declare const intOrInfinity: z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>;
|
|
3
4
|
export declare const anyFunction: z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/browser",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
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.",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"directory": "packages/rspack-browser"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@napi-rs/wasm-runtime": "^1.0.
|
|
32
|
+
"@napi-rs/wasm-runtime": "^1.0.5",
|
|
33
33
|
"@rspack/lite-tapable": "1.0.1",
|
|
34
|
-
"@swc/types": "0.1.
|
|
34
|
+
"@swc/types": "0.1.25",
|
|
35
35
|
"@types/watchpack": "^2.4.4",
|
|
36
36
|
"memfs": "4.38.2",
|
|
37
37
|
"webpack-sources": "3.3.3"
|