@rspack/browser 1.7.0-beta.0 → 1.7.0-beta.1
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/config/normalization.d.ts +0 -4
- package/dist/config/types.d.ts +8 -6
- package/dist/index.mjs +419 -429
- package/dist/napi-binding.d.ts +0 -1
- package/dist/rspack.d.ts +9 -0
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/util/index.d.ts +1 -0
- package/dist/wasi-worker-browser.mjs +84 -84
- package/package.json +1 -1
|
@@ -111,10 +111,6 @@ export interface ExperimentsNormalized {
|
|
|
111
111
|
*/
|
|
112
112
|
layers?: boolean;
|
|
113
113
|
incremental?: false | Incremental;
|
|
114
|
-
/**
|
|
115
|
-
* @deprecated This option is deprecated, as it has a huge regression in some edge cases where the chunk graph has lots of cycles. We will improve performance of build_chunk_graph.
|
|
116
|
-
*/
|
|
117
|
-
parallelCodeSplitting?: boolean;
|
|
118
114
|
futureDefaults?: boolean;
|
|
119
115
|
rspackFuture?: RspackFutureOptions;
|
|
120
116
|
buildHttp?: HttpUriPluginOptions;
|
package/dist/config/types.d.ts
CHANGED
|
@@ -461,7 +461,13 @@ export type Output = {
|
|
|
461
461
|
/** An optional salt to update the hash. */
|
|
462
462
|
hashSalt?: HashSalt;
|
|
463
463
|
/**
|
|
464
|
-
*
|
|
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;
|
|
@@ -2097,6 +2103,7 @@ export type Experiments = {
|
|
|
2097
2103
|
outputModule?: boolean;
|
|
2098
2104
|
/**
|
|
2099
2105
|
* Enable top-level await.
|
|
2106
|
+
* @deprecated This option is deprecated, top-level await is enabled by default.
|
|
2100
2107
|
* @default true
|
|
2101
2108
|
*/
|
|
2102
2109
|
topLevelAwait?: boolean;
|
|
@@ -2123,11 +2130,6 @@ export type Experiments = {
|
|
|
2123
2130
|
* Enable incremental builds.
|
|
2124
2131
|
*/
|
|
2125
2132
|
incremental?: IncrementalPresets | Incremental;
|
|
2126
|
-
/**
|
|
2127
|
-
* Enable multi-threaded code splitting algorithm.
|
|
2128
|
-
* @deprecated This option is deprecated, it has a huge regression in some edge cases where the chunk graph has lots of cycles. We'll improve the performance of build_chunk_graph in the future instead
|
|
2129
|
-
*/
|
|
2130
|
-
parallelCodeSplitting?: boolean;
|
|
2131
2133
|
/**
|
|
2132
2134
|
* Enable future default options.
|
|
2133
2135
|
* @default false
|