@rspack/browser 1.5.5 → 1.5.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/Compiler.d.ts +45 -32
- package/dist/MultiCompiler.d.ts +5 -2
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/IgnorePlugin.d.ts +1 -1
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProgressPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RslibPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RstestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +2 -2
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +1 -1
- package/dist/config/types.d.ts +6 -0
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/exports.d.ts +1 -1
- package/dist/index.mjs +383 -347
- package/dist/napi-binding.d.ts +8 -7
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/schema/config.d.ts +8 -0
- package/dist/schema/loaders.d.ts +1 -0
- package/dist/stats/statsFactoryUtils.d.ts +0 -1
- package/package.json +1 -1
package/dist/napi-binding.d.ts
CHANGED
|
@@ -1353,11 +1353,6 @@ export interface JsStatsLogging {
|
|
|
1353
1353
|
trace?: Array<string>
|
|
1354
1354
|
}
|
|
1355
1355
|
|
|
1356
|
-
export interface JsStatsMillisecond {
|
|
1357
|
-
secs: number
|
|
1358
|
-
subsecMillis: number
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
1356
|
export interface JsStatsModule {
|
|
1362
1357
|
commonAttributes: JsStatsModuleCommonAttributes
|
|
1363
1358
|
dependent?: boolean
|
|
@@ -1402,8 +1397,8 @@ export interface JsStatsModuleIssuer {
|
|
|
1402
1397
|
}
|
|
1403
1398
|
|
|
1404
1399
|
export interface JsStatsModuleProfile {
|
|
1405
|
-
factory:
|
|
1406
|
-
building:
|
|
1400
|
+
factory: number
|
|
1401
|
+
building: number
|
|
1407
1402
|
}
|
|
1408
1403
|
|
|
1409
1404
|
export interface JsStatsModuleReason {
|
|
@@ -2327,6 +2322,7 @@ export interface RawJavascriptParserOptions {
|
|
|
2327
2322
|
* @experimental
|
|
2328
2323
|
*/
|
|
2329
2324
|
importDynamic?: boolean
|
|
2325
|
+
commonjsMagicComments?: boolean
|
|
2330
2326
|
/**
|
|
2331
2327
|
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2332
2328
|
* @experimental
|
|
@@ -2337,6 +2333,11 @@ export interface RawJavascriptParserOptions {
|
|
|
2337
2333
|
* @experimental
|
|
2338
2334
|
*/
|
|
2339
2335
|
typeReexportsPresence?: string
|
|
2336
|
+
/**
|
|
2337
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2338
|
+
* @experimental
|
|
2339
|
+
*/
|
|
2340
|
+
jsx?: boolean
|
|
2340
2341
|
}
|
|
2341
2342
|
|
|
2342
2343
|
export interface RawJsonGeneratorOptions {
|
|
Binary file
|
package/dist/schema/config.d.ts
CHANGED
|
@@ -761,6 +761,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
761
761
|
strict: "strict";
|
|
762
762
|
"non-strict": "non-strict";
|
|
763
763
|
}>>;
|
|
764
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
764
765
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
765
766
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
766
767
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -771,6 +772,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
771
772
|
tolerant: "tolerant";
|
|
772
773
|
"tolerant-no-check": "tolerant-no-check";
|
|
773
774
|
}>>;
|
|
775
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
774
776
|
}, z.core.$strict>>;
|
|
775
777
|
"javascript/auto": z.ZodOptional<z.ZodObject<{
|
|
776
778
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -813,6 +815,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
813
815
|
strict: "strict";
|
|
814
816
|
"non-strict": "non-strict";
|
|
815
817
|
}>>;
|
|
818
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
816
819
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
817
820
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
818
821
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -823,6 +826,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
823
826
|
tolerant: "tolerant";
|
|
824
827
|
"tolerant-no-check": "tolerant-no-check";
|
|
825
828
|
}>>;
|
|
829
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
826
830
|
}, z.core.$strict>>;
|
|
827
831
|
"javascript/dynamic": z.ZodOptional<z.ZodObject<{
|
|
828
832
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -865,6 +869,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
865
869
|
strict: "strict";
|
|
866
870
|
"non-strict": "non-strict";
|
|
867
871
|
}>>;
|
|
872
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
868
873
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
869
874
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
870
875
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -875,6 +880,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
875
880
|
tolerant: "tolerant";
|
|
876
881
|
"tolerant-no-check": "tolerant-no-check";
|
|
877
882
|
}>>;
|
|
883
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
878
884
|
}, z.core.$strict>>;
|
|
879
885
|
"javascript/esm": z.ZodOptional<z.ZodObject<{
|
|
880
886
|
dynamicImportMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -917,6 +923,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
917
923
|
strict: "strict";
|
|
918
924
|
"non-strict": "non-strict";
|
|
919
925
|
}>>;
|
|
926
|
+
commonjsMagicComments: z.ZodOptional<z.ZodBoolean>;
|
|
920
927
|
requireAsExpression: z.ZodOptional<z.ZodBoolean>;
|
|
921
928
|
requireDynamic: z.ZodOptional<z.ZodBoolean>;
|
|
922
929
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -927,6 +934,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
927
934
|
tolerant: "tolerant";
|
|
928
935
|
"tolerant-no-check": "tolerant-no-check";
|
|
929
936
|
}>>;
|
|
937
|
+
jsx: z.ZodOptional<z.ZodBoolean>;
|
|
930
938
|
}, z.core.$strict>>;
|
|
931
939
|
}, z.core.$strict>>;
|
|
932
940
|
generator: z.ZodOptional<z.ZodObject<{
|
package/dist/schema/loaders.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export declare const getZodSwcLoaderOptionsSchema: () => z.ZodObject<{
|
|
|
89
89
|
emitFullSignatures: z.ZodOptional<z.ZodBoolean>;
|
|
90
90
|
}, z.core.$strict>]>>;
|
|
91
91
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
92
|
+
preserve: "preserve";
|
|
92
93
|
automatic: "automatic";
|
|
93
94
|
classic: "classic";
|
|
94
95
|
}>>;
|
|
@@ -316,7 +316,6 @@ export declare const mergeToObject: (items: {
|
|
|
316
316
|
[key: string]: any;
|
|
317
317
|
name: string;
|
|
318
318
|
}[]) => Object;
|
|
319
|
-
export declare function resolveStatsMillisecond(s: binding.JsStatsMillisecond): number;
|
|
320
319
|
export declare const errorsSpaceLimit: (errors: StatsError[], max: number) => {
|
|
321
320
|
errors: StatsError[];
|
|
322
321
|
filtered: number;
|
package/package.json
CHANGED