@rspack-canary/browser 1.7.1-canary-87f1338b-20260106141953 → 1.7.2-canary-4b68b9c2-20260107123726

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.
@@ -52,11 +52,6 @@ export type HtmlRspackPluginOptions = {
52
52
  * @default "auto"
53
53
  */
54
54
  chunksSortMode?: 'auto' | 'manual';
55
- /**
56
- * Configure the SRI hash algorithm, which is disabled by default.
57
- * @deprecated Use `experiments.SubresourceIntegrityPlugin` instead.
58
- */
59
- sri?: 'sha256' | 'sha384' | 'sha512';
60
55
  /**
61
56
  * Controls whether to minify the output, disabled by default.
62
57
  */
@@ -10,7 +10,7 @@
10
10
  import type { HttpUriPluginOptions } from '../builtin-plugin';
11
11
  import type { Compilation } from '../Compilation';
12
12
  import type WebpackError from '../lib/WebpackError';
13
- import type { Amd, AssetModuleFilename, Bail, CacheOptions, ChunkFilename, ChunkLoading, ChunkLoadingGlobal, Clean, Context, CrossOriginLoading, CssChunkFilename, CssFilename, Dependencies, DevServer, DevTool, DevtoolFallbackModuleFilenameTemplate, DevtoolModuleFilenameTemplate, DevtoolNamespace, EnabledLibraryTypes, EnabledWasmLoadingTypes, EntryDescription, Environment, Externals, ExternalsPresets, ExternalsType, Filename, GeneratorOptionsByModuleType, GlobalObject, HashDigest, HashDigestLength, HashFunction, HashSalt, HotUpdateChunkFilename, HotUpdateGlobal, HotUpdateMainFilename, Iife, ImportFunctionName, ImportMetaName, Incremental, InfrastructureLogging, LazyCompilationOptions, LibraryOptions, Loader, Mode, Name, Node, NoParseOption, Optimization, OutputModule, ParserOptionsByModuleType, Path, Performance, Plugins, Profile, PublicPath, Resolve, RspackFutureOptions, RspackOptions, RuleSetRules, ScriptType, SnapshotOptions, SourceMapFilename, StatsValue, StrictModuleErrorHandling, Target, TrustedTypes, UniqueName, WasmLoading, Watch, WatchOptions, WebassemblyModuleFilename, WorkerPublicPath } from './types';
13
+ import type { Amd, AssetModuleFilename, Bail, BundlerInfoOptions, CacheOptions, ChunkFilename, ChunkLoading, ChunkLoadingGlobal, Clean, Context, CrossOriginLoading, CssChunkFilename, CssFilename, Dependencies, DevServer, DevTool, DevtoolFallbackModuleFilenameTemplate, DevtoolModuleFilenameTemplate, DevtoolNamespace, EnabledLibraryTypes, EnabledWasmLoadingTypes, EntryDescription, Environment, Externals, ExternalsPresets, ExternalsType, Filename, GeneratorOptionsByModuleType, GlobalObject, HashDigest, HashDigestLength, HashFunction, HashSalt, HotUpdateChunkFilename, HotUpdateGlobal, HotUpdateMainFilename, Iife, ImportFunctionName, ImportMetaName, Incremental, InfrastructureLogging, LazyCompilationOptions, LibraryOptions, Loader, Mode, Name, Node, NoParseOption, Optimization, OutputModule, ParserOptionsByModuleType, Path, Performance, Plugins, Profile, PublicPath, Resolve, RspackOptions, RuleSetRules, ScriptType, SnapshotOptions, SourceMapFilename, StatsValue, StrictModuleErrorHandling, Target, TrustedTypes, UniqueName, WasmLoading, Watch, WatchOptions, WebassemblyModuleFilename, WorkerPublicPath } from './types';
14
14
  export declare const getNormalizedRspackOptions: (config: RspackOptions) => RspackOptionsNormalized;
15
15
  export type EntryDynamicNormalized = () => Promise<EntryStaticNormalized>;
16
16
  export type EntryNormalized = EntryDynamicNormalized | EntryStaticNormalized;
@@ -66,9 +66,9 @@ export interface OutputNormalized {
66
66
  devtoolModuleFilenameTemplate?: DevtoolModuleFilenameTemplate;
67
67
  devtoolFallbackModuleFilenameTemplate?: DevtoolFallbackModuleFilenameTemplate;
68
68
  environment?: Environment;
69
- charset?: boolean;
70
69
  chunkLoadTimeout?: number;
71
70
  compareBeforeEmit?: boolean;
71
+ bundlerInfo?: BundlerInfoOptions;
72
72
  }
73
73
  export interface ModuleOptionsNormalized {
74
74
  defaultRules?: RuleSetRules;
@@ -112,9 +112,7 @@ export interface ExperimentsNormalized {
112
112
  layers?: boolean;
113
113
  incremental?: false | Incremental;
114
114
  futureDefaults?: boolean;
115
- rspackFuture?: RspackFutureOptions;
116
115
  buildHttp?: HttpUriPluginOptions;
117
- parallelLoader?: boolean;
118
116
  useInputFileSystem?: false | RegExp[];
119
117
  /**
120
118
  * @deprecated This option is deprecated, it's already stable and enabled by default, Rspack will remove this option in future version
@@ -499,17 +499,16 @@ export type Output = {
499
499
  * @default 120000
500
500
  * */
501
501
  chunkLoadTimeout?: number;
502
- /**
503
- * Add charset="utf-8" to the HTML <script> tag.
504
- * @default true
505
- * */
506
- charset?: boolean;
507
502
  /** Tell Rspack what kind of ES-features may be used in the generated runtime-code. */
508
503
  environment?: Environment;
509
504
  /**
510
505
  * Check if to be emitted file already exists and have the same content before writing to output filesystem.
511
506
  */
512
507
  compareBeforeEmit?: boolean;
508
+ /**
509
+ * Information about the bundler.
510
+ */
511
+ bundlerInfo?: BundlerInfoOptions;
513
512
  };
514
513
  /**
515
514
  * Path alias
@@ -1937,26 +1936,21 @@ export type ExperimentCacheOptions = boolean | {
1937
1936
  };
1938
1937
  };
1939
1938
  /**
1940
- * Options for future Rspack features.
1939
+ * Information about the bundler.
1941
1940
  */
1942
- export type RspackFutureOptions = {
1941
+ export type BundlerInfoOptions = {
1943
1942
  /**
1944
- * Information about the bundler.
1943
+ * Version of the bundler.
1945
1944
  */
1946
- bundlerInfo?: {
1947
- /**
1948
- * Version of the bundler.
1949
- */
1950
- version?: string;
1951
- /**
1952
- * Name of the bundler.
1953
- */
1954
- bundler?: string;
1955
- /**
1956
- * Force specific features.
1957
- */
1958
- force?: boolean | ('version' | 'uniqueId')[];
1959
- };
1945
+ version?: string;
1946
+ /**
1947
+ * Name of the bundler.
1948
+ */
1949
+ bundler?: string;
1950
+ /**
1951
+ * Force specific features.
1952
+ */
1953
+ force?: boolean | ('version' | 'uniqueId')[];
1960
1954
  };
1961
1955
  /**
1962
1956
  * Options for lazy compilation.
@@ -2135,20 +2129,11 @@ export type Experiments = {
2135
2129
  * @default false
2136
2130
  */
2137
2131
  futureDefaults?: boolean;
2138
- /**
2139
- * Enable future Rspack features default options.
2140
- */
2141
- rspackFuture?: RspackFutureOptions;
2142
2132
  /**
2143
2133
  * Enable loading of modules via HTTP/HTTPS requests.
2144
2134
  * @default false
2145
2135
  */
2146
2136
  buildHttp?: HttpUriOptions;
2147
- /**
2148
- * Enable parallel loader
2149
- * @default false
2150
- */
2151
- parallelLoader?: boolean;
2152
2137
  /**
2153
2138
  * Enable Node.js input file system
2154
2139
  * @default false
package/dist/exports.d.ts CHANGED
@@ -147,10 +147,6 @@ interface Experiments {
147
147
  cleanup: () => Promise<void>;
148
148
  };
149
149
  RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin;
150
- /**
151
- * @deprecated Use `rspack.SubresourceIntegrityPlugin` instead
152
- */
153
- SubresourceIntegrityPlugin: typeof SubresourceIntegrityPlugin;
154
150
  EsmLibraryPlugin: typeof EsmLibraryPlugin;
155
151
  RsdoctorPlugin: typeof RsdoctorPlugin;
156
152
  RstestPlugin: typeof RstestPlugin;
package/dist/index.mjs CHANGED
@@ -55091,7 +55091,7 @@ async function runLoaders(compiler, context) {
55091
55091
  }
55092
55092
  };
55093
55093
  };
55094
- const enableParallelism = (currentLoaderObject)=>compiler.options.experiments.parallelLoader && currentLoaderObject?.parallel;
55094
+ const enableParallelism = (currentLoaderObject)=>currentLoaderObject?.parallel;
55095
55095
  const isomorphoicRun = async (fn, args)=>{
55096
55096
  const currentLoaderObject = getCurrentLoader(loaderContext);
55097
55097
  const parallelism = enableParallelism(currentLoaderObject);
@@ -56166,7 +56166,6 @@ const HtmlRspackPluginImpl = base_create(external_rspack_wasi_browser_js_.Builti
56166
56166
  chunks: c.chunks,
56167
56167
  excludeChunks: c.excludeChunks,
56168
56168
  chunksSortMode,
56169
- sri: c.sri,
56170
56169
  minify: c.minify,
56171
56170
  meta,
56172
56171
  scriptLoading,
@@ -58083,7 +58082,6 @@ const applyRspackOptionsDefaults = (options)=>{
58083
58082
  outputModule: options.experiments.outputModule,
58084
58083
  entry: options.entry
58085
58084
  });
58086
- applybundlerInfoDefaults(options.experiments.rspackFuture, options.output.library);
58087
58085
  applyExternalsPresetsDefaults(options.externalsPresets, {
58088
58086
  targetProperties,
58089
58087
  buildHttp: Boolean(options.experiments.buildHttp)
@@ -58160,24 +58158,12 @@ const applyExperimentsDefaults = (experiments, { development })=>{
58160
58158
  D(experiments.incremental, 'chunksRender', true);
58161
58159
  D(experiments.incremental, 'emitAssets', true);
58162
58160
  }
58163
- D(experiments, 'rspackFuture', {});
58164
- D(experiments, 'parallelLoader', false);
58165
58161
  D(experiments, 'useInputFileSystem', false);
58166
58162
  D(experiments, 'inlineConst', true);
58167
58163
  D(experiments, 'inlineEnum', false);
58168
58164
  D(experiments, 'typeReexportsPresence', false);
58169
58165
  D(experiments, 'lazyBarrel', true);
58170
58166
  };
58171
- const applybundlerInfoDefaults = (rspackFuture, library)=>{
58172
- if ('object' == typeof rspackFuture) {
58173
- D(rspackFuture, 'bundlerInfo', {});
58174
- if ('object' == typeof rspackFuture.bundlerInfo) {
58175
- D(rspackFuture.bundlerInfo, 'version', "1.7.1-canary-87f1338b-20260106141953");
58176
- D(rspackFuture.bundlerInfo, 'bundler', 'rspack');
58177
- D(rspackFuture.bundlerInfo, 'force', !library);
58178
- }
58179
- }
58180
- };
58181
58167
  const applySnapshotDefaults = (_snapshot, _env)=>{};
58182
58168
  const applyJavascriptParserOptionsDefaults = (parserOptions, { deferImport })=>{
58183
58169
  D(parserOptions, 'dynamicImportMode', 'lazy');
@@ -58559,7 +58545,6 @@ const applyOutputDefaults = (output, { context, outputModule, targetProperties:
58559
58545
  D(output, 'workerPublicPath', '');
58560
58546
  D(output, 'sourceMapFilename', '[file].map[query]');
58561
58547
  F(output, "scriptType", ()=>output.module ? 'module' : false);
58562
- D(output, 'charset', false);
58563
58548
  D(output, 'chunkLoadTimeout', 120000);
58564
58549
  const { trustedTypes } = output;
58565
58550
  if (trustedTypes) {
@@ -58596,6 +58581,12 @@ const applyOutputDefaults = (output, { context, outputModule, targetProperties:
58596
58581
  });
58597
58582
  return Array.from(enabledWasmLoadingTypes);
58598
58583
  });
58584
+ D(output, 'bundlerInfo', {});
58585
+ if ('object' == typeof output.bundlerInfo) {
58586
+ D(output.bundlerInfo, 'version', "1.7.2-canary-4b68b9c2-20260107123726");
58587
+ D(output.bundlerInfo, 'bundler', 'rspack');
58588
+ D(output.bundlerInfo, 'force', !output.library);
58589
+ }
58599
58590
  };
58600
58591
  const applyExternalsPresetsDefaults = (externalsPresets, { targetProperties, buildHttp })=>{
58601
58592
  D(externalsPresets, 'web', !buildHttp && targetProperties?.web);
@@ -58980,9 +58971,9 @@ const getNormalizedRspackOptions = (config)=>({
58980
58971
  devtoolModuleFilenameTemplate: output.devtoolModuleFilenameTemplate,
58981
58972
  devtoolFallbackModuleFilenameTemplate: output.devtoolFallbackModuleFilenameTemplate,
58982
58973
  chunkLoadTimeout: output.chunkLoadTimeout,
58983
- charset: output.charset,
58984
58974
  environment: cloneObject(output.environment),
58985
- compareBeforeEmit: output.compareBeforeEmit
58975
+ compareBeforeEmit: output.compareBeforeEmit,
58976
+ bundlerInfo: output.bundlerInfo
58986
58977
  };
58987
58978
  }),
58988
58979
  resolve: nestedConfig(config.resolve, (resolve)=>({
@@ -59091,7 +59082,6 @@ const getNormalizedRspackOptions = (config)=>({
59091
59082
  lazyCompilation: optionalNestedConfig(experiments.lazyCompilation, (options)=>true === options ? {} : options),
59092
59083
  incremental: optionalNestedConfig(experiments.incremental, (options)=>getNormalizedIncrementalOptions(options)),
59093
59084
  buildHttp: experiments.buildHttp,
59094
- parallelLoader: experiments.parallelLoader,
59095
59085
  useInputFileSystem: experiments.useInputFileSystem
59096
59086
  };
59097
59087
  }),
@@ -60441,7 +60431,7 @@ class MultiStats {
60441
60431
  return obj;
60442
60432
  });
60443
60433
  if (childOptions.version) {
60444
- obj.rspackVersion = "1.7.1-canary-87f1338b-20260106141953";
60434
+ obj.rspackVersion = "1.7.2-canary-4b68b9c2-20260107123726";
60445
60435
  obj.version = "5.75.0";
60446
60436
  }
60447
60437
  if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
@@ -62273,7 +62263,7 @@ const SIMPLE_EXTRACTORS = {
62273
62263
  },
62274
62264
  version: (object)=>{
62275
62265
  object.version = "5.75.0";
62276
- object.rspackVersion = "1.7.1-canary-87f1338b-20260106141953";
62266
+ object.rspackVersion = "1.7.2-canary-4b68b9c2-20260107123726";
62277
62267
  },
62278
62268
  env: (object, _compilation, _context, { _env })=>{
62279
62269
  object.env = _env;
@@ -63922,7 +63912,7 @@ class RspackOptionsApply {
63922
63912
  assertNotNill(options.context);
63923
63913
  compiler.hooks.entryOption.call(options.context, options.entry);
63924
63914
  new RuntimePlugin().apply(compiler);
63925
- if (options.experiments.rspackFuture.bundlerInfo) new BundlerInfoRspackPlugin(options.experiments.rspackFuture.bundlerInfo).apply(compiler);
63915
+ if (options.output.bundlerInfo) new BundlerInfoRspackPlugin(options.output.bundlerInfo).apply(compiler);
63926
63916
  new InferAsyncModulesPlugin().apply(compiler);
63927
63917
  new APIPlugin().apply(compiler);
63928
63918
  new DataUriPlugin().apply(compiler);
@@ -66940,7 +66930,7 @@ function transformSync(source, options) {
66940
66930
  const _options = JSON.stringify(options || {});
66941
66931
  return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
66942
66932
  }
66943
- const exports_rspackVersion = "1.7.1-canary-87f1338b-20260106141953";
66933
+ const exports_rspackVersion = "1.7.2-canary-4b68b9c2-20260107123726";
66944
66934
  const exports_version = "5.75.0";
66945
66935
  const exports_WebpackError = Error;
66946
66936
  const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
@@ -67008,7 +66998,6 @@ const exports_experiments = {
67008
66998
  }
67009
66999
  },
67010
67000
  RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin,
67011
- SubresourceIntegrityPlugin: SubresourceIntegrityPlugin,
67012
67001
  EsmLibraryPlugin: EsmLibraryPlugin,
67013
67002
  RsdoctorPlugin: RsdoctorPlugin,
67014
67003
  RstestPlugin: RstestPlugin,
@@ -2132,7 +2132,6 @@ export interface RawExperimentCacheOptionsPersistent {
2132
2132
  export interface RawExperiments {
2133
2133
  topLevelAwait: boolean
2134
2134
  incremental?: false | { [key: string]: boolean }
2135
- rspackFuture?: RawRspackFuture
2136
2135
  cache: boolean | { type: "persistent" } & RawExperimentCacheOptionsPersistent | { type: "memory" }
2137
2136
  useInputFileSystem?: false | Array<RegExp>
2138
2137
  css?: boolean
@@ -2240,7 +2239,6 @@ export interface RawHtmlRspackPluginOptions {
2240
2239
  chunks?: Array<string>
2241
2240
  excludeChunks?: Array<string>
2242
2241
  chunksSortMode: "auto" | "manual"
2243
- sri?: "sha256" | "sha384" | "sha512"
2244
2242
  minify?: boolean
2245
2243
  title?: string
2246
2244
  favicon?: string
@@ -2636,7 +2634,6 @@ export interface RawOutputOptions {
2636
2634
  module: boolean
2637
2635
  chunkLoading: string | false
2638
2636
  chunkLoadTimeout: number
2639
- charset: boolean
2640
2637
  enabledChunkLoadingTypes?: Array<string>
2641
2638
  trustedTypes?: RawTrustedTypes
2642
2639
  sourceMapFilename: string
@@ -2781,10 +2778,6 @@ export interface RawRslibPluginOptions {
2781
2778
  forceNodeShims?: boolean
2782
2779
  }
2783
2780
 
2784
- export interface RawRspackFuture {
2785
-
2786
- }
2787
-
2788
2781
  export interface RawRstestPluginOptions {
2789
2782
  injectModulePathName: boolean
2790
2783
  importMetaPathName: boolean
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/browser",
3
- "version": "1.7.1-canary-87f1338b-20260106141953",
3
+ "version": "1.7.2-canary-4b68b9c2-20260107123726",
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.",