@rspack-canary/browser 1.6.8-canary-2fd81281-20251216180302 → 1.7.0-canary-06f6b341-20251218173906

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.
@@ -17,7 +17,7 @@ export type EntryNormalized = EntryDynamicNormalized | EntryStaticNormalized;
17
17
  export interface EntryStaticNormalized {
18
18
  [k: string]: EntryDescriptionNormalized;
19
19
  }
20
- export type EntryDescriptionNormalized = Pick<EntryDescription, "runtime" | "chunkLoading" | "asyncChunks" | "publicPath" | "baseUri" | "filename" | "library" | "layer"> & {
20
+ export type EntryDescriptionNormalized = Pick<EntryDescription, "runtime" | "chunkLoading" | "wasmLoading" | "asyncChunks" | "publicPath" | "baseUri" | "filename" | "library" | "layer"> & {
21
21
  import?: string[];
22
22
  dependOn?: string[];
23
23
  };
@@ -120,9 +120,18 @@ export interface ExperimentsNormalized {
120
120
  buildHttp?: HttpUriPluginOptions;
121
121
  parallelLoader?: boolean;
122
122
  useInputFileSystem?: false | RegExp[];
123
+ /**
124
+ * @deprecated This option is deprecated, it's already stable and enabled by default, Rspack will remove this option in future version
125
+ */
123
126
  inlineConst?: boolean;
127
+ /**
128
+ * @deprecated This option is deprecated, it's already stable and enabled by default, Rspack will remove this option in future version
129
+ */
124
130
  inlineEnum?: boolean;
125
131
  typeReexportsPresence?: boolean;
132
+ /**
133
+ * @deprecated This option is deprecated, it's already stable and enabled by default, Rspack will remove this option in future version
134
+ */
126
135
  lazyBarrel?: boolean;
127
136
  nativeWatcher?: boolean;
128
137
  deferImport?: boolean;
@@ -461,7 +461,13 @@ export type Output = {
461
461
  /** An optional salt to update the hash. */
462
462
  hashSalt?: HashSalt;
463
463
  /**
464
- * Create async chunks that are loaded on demand.
464
+ * Controls whether dynamically imported modules are emitted as separate async chunks or bundled into
465
+ * existing chunks.
466
+ * - `true`: Modules loaded via `import()` are split into independent async chunks. These chunks are
467
+ * emitted as separate files and are loaded on demand at runtime. This enables code splitting and keeps
468
+ * the initial bundle smaller.
469
+ * - `false`: Dynamically imported modules are bundled into existing chunks instead of being emitted as
470
+ * separate files. No additional async chunk files are generated.
465
471
  * @default true
466
472
  * */
467
473
  asyncChunks?: AsyncChunks;
@@ -858,8 +864,6 @@ export type JavascriptParserOptions = {
858
864
  * Enable magic comments for CommonJS require() expressions.
859
865
  */
860
866
  commonjsMagicComments?: boolean;
861
- /** Inline const values in this module */
862
- inlineConst?: boolean;
863
867
  /** Whether to tolerant exportsPresence for type reexport */
864
868
  typeReexportsPresence?: "no-tolerant" | "tolerant" | "tolerant-no-check";
865
869
  /** Whether to enable JSX parsing */
@@ -1881,6 +1885,13 @@ export type Optimization = {
1881
1885
  * The value is `false` in development mode.
1882
1886
  */
1883
1887
  mangleExports?: "size" | "deterministic" | boolean;
1888
+ /**
1889
+ * Allows to inline exports when possible to reduce code size.
1890
+ *
1891
+ * The value is `true` in production mode.
1892
+ * The value is `false` in development mode.
1893
+ */
1894
+ inlineExports?: boolean;
1884
1895
  /**
1885
1896
  * Tells Rspack to set process.env.NODE_ENV to a given string value.
1886
1897
  * @default false
@@ -2155,21 +2166,25 @@ export type Experiments = {
2155
2166
  /**
2156
2167
  * Enable inline const feature
2157
2168
  * @default false
2169
+ * @deprecated This option is deprecated, it's already stable and enabled by default, Rspack will remove this option in future version
2158
2170
  */
2159
2171
  inlineConst?: boolean;
2160
2172
  /**
2161
2173
  * Enable inline enum feature
2162
2174
  * @default false
2175
+ * @deprecated This option is deprecated, it's already stable. Rspack will remove this option in future version
2163
2176
  */
2164
2177
  inlineEnum?: boolean;
2165
2178
  /**
2166
2179
  * Enable type reexports presence feature
2167
2180
  * @default false
2181
+ * @deprecated This option is deprecated, it's already stable. Rspack will remove this option in future version
2168
2182
  */
2169
2183
  typeReexportsPresence?: boolean;
2170
2184
  /**
2171
2185
  * Enable lazy make side effects free barrel file
2172
2186
  * @default false
2187
+ * @deprecated This option is deprecated, it's already stable and enabled by default, Rspack will remove this option in future version
2173
2188
  */
2174
2189
  lazyBarrel?: boolean;
2175
2190
  /**
package/dist/exports.d.ts CHANGED
@@ -56,6 +56,7 @@ export { LoaderOptionsPlugin } from "./lib/LoaderOptionsPlugin";
56
56
  export { LoaderTargetPlugin } from "./lib/LoaderTargetPlugin";
57
57
  export type { OutputFileSystem, WatchFileSystem } from "./util/fs";
58
58
  import { EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from "./builtin-plugin";
59
+ export { SubresourceIntegrityPlugin };
59
60
  interface Web {
60
61
  FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
61
62
  }
@@ -142,11 +143,14 @@ interface Experiments {
142
143
  cleanup: () => Promise<void>;
143
144
  };
144
145
  RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin;
146
+ /**
147
+ * @deprecated Use `rspack.SubresourceIntegrityPlugin` instead
148
+ */
149
+ SubresourceIntegrityPlugin: typeof SubresourceIntegrityPlugin;
145
150
  EsmLibraryPlugin: typeof EsmLibraryPlugin;
146
151
  RsdoctorPlugin: typeof RsdoctorPlugin;
147
152
  RstestPlugin: typeof RstestPlugin;
148
153
  RslibPlugin: typeof RslibPlugin;
149
- SubresourceIntegrityPlugin: typeof SubresourceIntegrityPlugin;
150
154
  /**
151
155
  * @deprecated Use `rspack.lazyCompilationMiddleware` instead
152
156
  */