@rspack-canary/browser 1.6.8-canary-2fd81281-20251216180302 → 1.7.0-canary-a0fc091c-20251217174017

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;
@@ -858,8 +858,6 @@ export type JavascriptParserOptions = {
858
858
  * Enable magic comments for CommonJS require() expressions.
859
859
  */
860
860
  commonjsMagicComments?: boolean;
861
- /** Inline const values in this module */
862
- inlineConst?: boolean;
863
861
  /** Whether to tolerant exportsPresence for type reexport */
864
862
  typeReexportsPresence?: "no-tolerant" | "tolerant" | "tolerant-no-check";
865
863
  /** Whether to enable JSX parsing */
@@ -1881,6 +1879,13 @@ export type Optimization = {
1881
1879
  * The value is `false` in development mode.
1882
1880
  */
1883
1881
  mangleExports?: "size" | "deterministic" | boolean;
1882
+ /**
1883
+ * Allows to inline exports when possible to reduce code size.
1884
+ *
1885
+ * The value is `true` in production mode.
1886
+ * The value is `false` in development mode.
1887
+ */
1888
+ inlineExports?: boolean;
1884
1889
  /**
1885
1890
  * Tells Rspack to set process.env.NODE_ENV to a given string value.
1886
1891
  * @default false
@@ -2155,21 +2160,25 @@ export type Experiments = {
2155
2160
  /**
2156
2161
  * Enable inline const feature
2157
2162
  * @default false
2163
+ * @deprecated This option is deprecated, it's already stable and enabled by default, Rspack will remove this option in future version
2158
2164
  */
2159
2165
  inlineConst?: boolean;
2160
2166
  /**
2161
2167
  * Enable inline enum feature
2162
2168
  * @default false
2169
+ * @deprecated This option is deprecated, it's already stable. Rspack will remove this option in future version
2163
2170
  */
2164
2171
  inlineEnum?: boolean;
2165
2172
  /**
2166
2173
  * Enable type reexports presence feature
2167
2174
  * @default false
2175
+ * @deprecated This option is deprecated, it's already stable. Rspack will remove this option in future version
2168
2176
  */
2169
2177
  typeReexportsPresence?: boolean;
2170
2178
  /**
2171
2179
  * Enable lazy make side effects free barrel file
2172
2180
  * @default false
2181
+ * @deprecated This option is deprecated, it's already stable and enabled by default, Rspack will remove this option in future version
2173
2182
  */
2174
2183
  lazyBarrel?: boolean;
2175
2184
  /**
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
  */
package/dist/index.mjs CHANGED
@@ -50605,6 +50605,7 @@ __webpack_require__.d(exports_namespaceObject, {
50605
50605
  SourceMapDevToolPlugin: ()=>SourceMapDevToolPlugin,
50606
50606
  Stats: ()=>Stats,
50607
50607
  StatsErrorCode: ()=>statsFactoryUtils_StatsErrorCode,
50608
+ SubresourceIntegrityPlugin: ()=>SubresourceIntegrityPlugin,
50608
50609
  SwcJsMinimizerRspackPlugin: ()=>SwcJsMinimizerRspackPlugin,
50609
50610
  Template: ()=>Template,
50610
50611
  ValidationError: ()=>ValidationError,
@@ -53277,14 +53278,13 @@ const OriginEntryPlugin = base_create(external_rspack_wasi_browser_js_.BuiltinPl
53277
53278
  const EntryPlugin = OriginEntryPlugin;
53278
53279
  EntryPlugin.createDependency = (request)=>new external_rspack_wasi_browser_js_.EntryDependency(request);
53279
53280
  function getRawEntryOptions(entry) {
53280
- const runtime = entry.runtime;
53281
- const chunkLoading = entry.chunkLoading;
53282
53281
  return {
53283
53282
  name: entry.name,
53284
53283
  publicPath: entry.publicPath,
53285
53284
  baseUri: entry.baseUri,
53286
- runtime,
53287
- chunkLoading,
53285
+ runtime: entry.runtime,
53286
+ chunkLoading: entry.chunkLoading,
53287
+ wasmLoading: entry.wasmLoading,
53288
53288
  asyncChunks: entry.asyncChunks,
53289
53289
  filename: entry.filename,
53290
53290
  library: entry.library,
@@ -53419,6 +53419,7 @@ function applyLimits(options, logger) {
53419
53419
  options.optimization.concatenateModules = false;
53420
53420
  options.optimization.removeEmptyChunks = false;
53421
53421
  options.output.chunkFormat = false;
53422
+ options.output.module = true;
53422
53423
  if (options.output.chunkLoading && "import" !== options.output.chunkLoading) {
53423
53424
  logger.warn(`\`output.chunkLoading\` should be \`"import"\` or \`false\`, but got ${options.output.chunkLoading}, changed it to \`"import"\``);
53424
53425
  options.output.chunkLoading = "import";
@@ -55659,7 +55660,6 @@ function getRawJavascriptParserOptions(parser) {
55659
55660
  commonjs: parser.commonjs,
55660
55661
  importDynamic: parser.importDynamic,
55661
55662
  commonjsMagicComments: parser.commonjsMagicComments,
55662
- inlineConst: parser.inlineConst,
55663
55663
  typeReexportsPresence: parser.typeReexportsPresence,
55664
55664
  jsx: parser.jsx,
55665
55665
  deferImport: parser.deferImport
@@ -58104,9 +58104,12 @@ const applyRspackOptionsDefaults = (options)=>{
58104
58104
  F(options, "devtool", ()=>development ? "eval" : false);
58105
58105
  D(options, "watch", false);
58106
58106
  D(options, "profile", false);
58107
- D(options, "lazyCompilation", {
58108
- imports: true,
58109
- entries: false
58107
+ F(options, "lazyCompilation", ()=>{
58108
+ if (!!targetProperties && targetProperties.web && !targetProperties.electron && !targetProperties.node && !targetProperties.nwjs) return {
58109
+ imports: true,
58110
+ entries: false
58111
+ };
58112
+ return false;
58110
58113
  });
58111
58114
  D(options, "bail", false);
58112
58115
  F(options, "cache", ()=>development);
@@ -58117,7 +58120,8 @@ const applyRspackOptionsDefaults = (options)=>{
58117
58120
  applyOptimizationDefaults(options.optimization, {
58118
58121
  production,
58119
58122
  development,
58120
- css: options.experiments.css
58123
+ css: options.experiments.css,
58124
+ deprecatedInline: options.experiments.inlineConst || options.experiments.inlineEnum
58121
58125
  });
58122
58126
  applySnapshotDefaults(options.snapshot, {
58123
58127
  production
@@ -58129,8 +58133,6 @@ const applyRspackOptionsDefaults = (options)=>{
58129
58133
  targetProperties,
58130
58134
  mode: options.mode,
58131
58135
  uniqueName: options.output.uniqueName,
58132
- usedExports: !!options.optimization.usedExports,
58133
- inlineConst: options.experiments.inlineConst,
58134
58136
  deferImport: options.experiments.deferImport
58135
58137
  });
58136
58138
  applyOutputDefaults(options.output, {
@@ -58211,7 +58213,7 @@ const applyExperimentsDefaults = (experiments, { development })=>{
58211
58213
  D(experiments, "parallelCodeSplitting", false);
58212
58214
  D(experiments, "parallelLoader", false);
58213
58215
  D(experiments, "useInputFileSystem", false);
58214
- D(experiments, "inlineConst", false);
58216
+ D(experiments, "inlineConst", true);
58215
58217
  D(experiments, "inlineEnum", false);
58216
58218
  D(experiments, "typeReexportsPresence", false);
58217
58219
  D(experiments, "lazyBarrel", true);
@@ -58220,14 +58222,14 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
58220
58222
  if ("object" == typeof rspackFuture) {
58221
58223
  D(rspackFuture, "bundlerInfo", {});
58222
58224
  if ("object" == typeof rspackFuture.bundlerInfo) {
58223
- D(rspackFuture.bundlerInfo, "version", "1.6.8-canary-2fd81281-20251216180302");
58225
+ D(rspackFuture.bundlerInfo, "version", "1.7.0-canary-a0fc091c-20251217174017");
58224
58226
  D(rspackFuture.bundlerInfo, "bundler", "rspack");
58225
58227
  D(rspackFuture.bundlerInfo, "force", !library);
58226
58228
  }
58227
58229
  }
58228
58230
  };
58229
58231
  const applySnapshotDefaults = (_snapshot, _env)=>{};
58230
- const applyJavascriptParserOptionsDefaults = (parserOptions, { usedExports, inlineConst, deferImport })=>{
58232
+ const applyJavascriptParserOptionsDefaults = (parserOptions, { deferImport })=>{
58231
58233
  D(parserOptions, "dynamicImportMode", "lazy");
58232
58234
  D(parserOptions, "dynamicImportPrefetch", false);
58233
58235
  D(parserOptions, "dynamicImportPreload", false);
@@ -58246,7 +58248,6 @@ const applyJavascriptParserOptionsDefaults = (parserOptions, { usedExports, inli
58246
58248
  "..."
58247
58249
  ]);
58248
58250
  D(parserOptions, "importMeta", true);
58249
- D(parserOptions, "inlineConst", usedExports && inlineConst);
58250
58251
  D(parserOptions, "typeReexportsPresence", "no-tolerant");
58251
58252
  D(parserOptions, "jsx", false);
58252
58253
  D(parserOptions, "deferImport", deferImport);
@@ -58254,7 +58255,7 @@ const applyJavascriptParserOptionsDefaults = (parserOptions, { usedExports, inli
58254
58255
  const applyJsonGeneratorOptionsDefaults = (generatorOptions)=>{
58255
58256
  D(generatorOptions, "JSONParse", true);
58256
58257
  };
58257
- const applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst, deferImport })=>{
58258
+ const applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, deferImport })=>{
58258
58259
  assertNotNill(module1.parser);
58259
58260
  assertNotNill(module1.generator);
58260
58261
  cache ? D(module1, "unsafeCache", /[\\/]node_modules[\\/]/) : D(module1, "unsafeCache", false);
@@ -58265,8 +58266,6 @@ const applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProp
58265
58266
  F(module1.parser, "javascript", ()=>({}));
58266
58267
  assertNotNill(module1.parser.javascript);
58267
58268
  applyJavascriptParserOptionsDefaults(module1.parser.javascript, {
58268
- usedExports,
58269
- inlineConst,
58270
58269
  deferImport
58271
58270
  });
58272
58271
  F(module1.parser, "json", ()=>({}));
@@ -58579,7 +58578,7 @@ const applyOutputDefaults = (output, { context, outputModule, targetProperties:
58579
58578
  if (tp) {
58580
58579
  if (tp.fetchWasm) return "fetch";
58581
58580
  if (tp.nodeBuiltins) return "async-node";
58582
- null === tp.nodeBuiltins || tp.fetchWasm;
58581
+ if ((null === tp.nodeBuiltins || null === tp.fetchWasm) && output.module && environment.dynamicImport) return "universal";
58583
58582
  }
58584
58583
  return false;
58585
58584
  });
@@ -58630,6 +58629,9 @@ const applyOutputDefaults = (output, { context, outputModule, targetProperties:
58630
58629
  const enabledWasmLoadingTypes = new Set();
58631
58630
  if (output.wasmLoading) enabledWasmLoadingTypes.add(output.wasmLoading);
58632
58631
  if (output.workerWasmLoading) enabledWasmLoadingTypes.add(output.workerWasmLoading);
58632
+ forEachEntry((desc)=>{
58633
+ if (desc.wasmLoading) enabledWasmLoadingTypes.add(desc.wasmLoading);
58634
+ });
58633
58635
  return Array.from(enabledWasmLoadingTypes);
58634
58636
  });
58635
58637
  };
@@ -58679,7 +58681,7 @@ const applyPerformanceDefaults = (performance, { production })=>{
58679
58681
  D(performance, "maxEntrypointSize", 250000);
58680
58682
  F(performance, "hints", ()=>production ? "warning" : false);
58681
58683
  };
58682
- const applyOptimizationDefaults = (optimization, { production, development, css })=>{
58684
+ const applyOptimizationDefaults = (optimization, { production, development, css, deprecatedInline })=>{
58683
58685
  D(optimization, "removeAvailableModules", true);
58684
58686
  D(optimization, "removeEmptyChunks", true);
58685
58687
  D(optimization, "mergeDuplicateChunks", true);
@@ -58695,6 +58697,7 @@ const applyOptimizationDefaults = (optimization, { production, development, css
58695
58697
  });
58696
58698
  F(optimization, "sideEffects", ()=>production ? true : "flag");
58697
58699
  D(optimization, "mangleExports", production);
58700
+ D(optimization, "inlineExports", deprecatedInline && production);
58698
58701
  D(optimization, "providedExports", true);
58699
58702
  D(optimization, "usedExports", production);
58700
58703
  D(optimization, "innerGraph", production);
@@ -59091,6 +59094,10 @@ const getNormalizedRspackOptions = (config)=>({
59091
59094
  if (experiments.layers) util_default().deprecate(()=>{}, "`experiments.layers` config has been deprecated and will be removed in Rspack v2.0. Feature layers will be always enabled. Please remove this option from your Rspack configuration.")();
59092
59095
  if (false === experiments.topLevelAwait) util_default().deprecate(()=>{}, "`experiments.topLevelAwait` config has been deprecated and will be removed in Rspack v2.0. Top-level await will be always enabled. Please remove this option from your Rspack configuration.")();
59093
59096
  if (experiments.parallelCodeSplitting) util_default().deprecate(()=>{}, "`experiments.parallelCodeSplitting` config has been deprecated and will be removed in next minor. It has 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")();
59097
+ if (experiments.lazyBarrel) util_default().deprecate(()=>{}, "`experiments.lazyBarrel` config has been deprecated and will be removed in Rspack v2.0. Lazy barrel is already stable and enabled by default. Please remove this option from your Rspack configuration.")();
59098
+ if (experiments.inlineConst) util_default().deprecate(()=>{}, "`experiments.inlineConst` config has been deprecated and will be removed in Rspack v2.0. Inline Const is already stable and enabled by default. Please remove this option from your Rspack configuration.")();
59099
+ if (experiments.inlineEnum) util_default().deprecate(()=>{}, "`experiments.inlineEnum` config has been deprecated and will be removed in Rspack v2.0. Inline Enum is already stable. Please remove this option from your Rspack configuration.")();
59100
+ if (experiments.typeReexportsPresence) util_default().deprecate(()=>{}, "`experiments.typeReexportsPresence` config has been deprecated and will be removed in Rspack v2.0. typeReexportsPresence is already stable. Please remove this option from your Rspack configuration.")();
59094
59101
  return {
59095
59102
  ...experiments,
59096
59103
  cache: optionalNestedConfig(experiments.cache, (cache)=>{
@@ -59111,7 +59118,7 @@ const getNormalizedRspackOptions = (config)=>({
59111
59118
  managedPaths: optionalNestedArray(snapshot.managedPaths, (p)=>[
59112
59119
  ...p
59113
59120
  ]) || [
59114
- /\/node_modules\//
59121
+ /[\\/]node_modules[\\/][^.]/
59115
59122
  ]
59116
59123
  },
59117
59124
  storage: {
@@ -62375,7 +62382,7 @@ class MultiStats {
62375
62382
  return obj;
62376
62383
  });
62377
62384
  if (childOptions.version) {
62378
- obj.rspackVersion = "1.6.8-canary-2fd81281-20251216180302";
62385
+ obj.rspackVersion = "1.7.0-canary-a0fc091c-20251217174017";
62379
62386
  obj.version = "5.75.0";
62380
62387
  }
62381
62388
  if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
@@ -63691,7 +63698,7 @@ const SIMPLE_EXTRACTORS = {
63691
63698
  },
63692
63699
  version: (object)=>{
63693
63700
  object.version = "5.75.0";
63694
- object.rspackVersion = "1.6.8-canary-2fd81281-20251216180302";
63701
+ object.rspackVersion = "1.7.0-canary-a0fc091c-20251217174017";
63695
63702
  },
63696
63703
  env: (object, _compilation, _context, { _env })=>{
63697
63704
  object.env = _env;
@@ -65352,7 +65359,7 @@ class RspackOptionsApply {
65352
65359
  if (options.optimization.providedExports) new FlagDependencyExportsPlugin().apply(compiler);
65353
65360
  if (options.optimization.usedExports) new FlagDependencyUsagePlugin("global" === options.optimization.usedExports).apply(compiler);
65354
65361
  if (options.optimization.concatenateModules) new ModuleConcatenationPlugin().apply(compiler);
65355
- if (options.experiments.inlineConst || options.experiments.inlineEnum) new InlineExportsPlugin().apply(compiler);
65362
+ if (options.optimization.inlineExports) new InlineExportsPlugin().apply(compiler);
65356
65363
  if (options.optimization.mangleExports) new MangleExportsPlugin("size" !== options.optimization.mangleExports).apply(compiler);
65357
65364
  if (options.output.enabledLibraryTypes && options.output.enabledLibraryTypes.length > 0) for (const type of options.output.enabledLibraryTypes)new EnableLibraryPlugin(type).apply(compiler);
65358
65365
  if (options.optimization.splitChunks) new SplitChunksPlugin(options.optimization.splitChunks).apply(compiler);
@@ -66828,7 +66835,7 @@ function transformSync(source, options) {
66828
66835
  const _options = JSON.stringify(options || {});
66829
66836
  return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
66830
66837
  }
66831
- const exports_rspackVersion = "1.6.8-canary-2fd81281-20251216180302";
66838
+ const exports_rspackVersion = "1.7.0-canary-a0fc091c-20251217174017";
66832
66839
  const exports_version = "5.75.0";
66833
66840
  const exports_WebpackError = Error;
66834
66841
  const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
@@ -66896,11 +66903,11 @@ const exports_experiments = {
66896
66903
  }
66897
66904
  },
66898
66905
  RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin,
66906
+ SubresourceIntegrityPlugin: SubresourceIntegrityPlugin,
66899
66907
  EsmLibraryPlugin: EsmLibraryPlugin,
66900
66908
  RsdoctorPlugin: RsdoctorPlugin,
66901
66909
  RstestPlugin: RstestPlugin,
66902
66910
  RslibPlugin: RslibPlugin,
66903
- SubresourceIntegrityPlugin: SubresourceIntegrityPlugin,
66904
66911
  lazyCompilationMiddleware: lazyCompilationMiddleware,
66905
66912
  swc: {
66906
66913
  minify: minify,
@@ -67239,4 +67246,4 @@ var __webpack_exports__EntryDependency = external_rspack_wasi_browser_js_.EntryD
67239
67246
  var __webpack_exports__ExternalModule = external_rspack_wasi_browser_js_.ExternalModule;
67240
67247
  var __webpack_exports__Module = external_rspack_wasi_browser_js_.Module;
67241
67248
  var __webpack_exports__NormalModule = external_rspack_wasi_browser_js_.NormalModule;
67242
- export { BannerPlugin, BrowserHttpImportEsmPlugin, BrowserRequirePlugin, CircularDependencyRspackPlugin, Compilation, Compiler, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, DefinePlugin, DllPlugin, DllReferencePlugin, DynamicEntryPlugin, lib_EntryOptionPlugin as EntryOptionPlugin, EntryPlugin, EnvironmentPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, ExternalsPlugin, HotModuleReplacementPlugin, HtmlRspackPlugin, IgnorePlugin, LightningCssMinimizerRspackPlugin, LoaderOptionsPlugin, LoaderTargetPlugin, ModuleFilenameHelpers_namespaceObject as ModuleFilenameHelpers, MultiCompiler, MultiStats, NoEmitOnErrorsPlugin, NormalModuleReplacementPlugin, ProgressPlugin, ProvidePlugin, RspackOptionsApply, DefaultRuntimeGlobals as RuntimeGlobals, RuntimeModule, RuntimePlugin, SourceMapDevToolPlugin, Stats, statsFactoryUtils_StatsErrorCode as StatsErrorCode, SwcJsMinimizerRspackPlugin, Template, ValidationError, WarnCaseSensitiveModulesPlugin, exports_WebpackError as WebpackError, RspackOptionsApply as WebpackOptionsApply, builtinMemFs, exports_config as config, container, electron, exports_experiments as experiments, javascript, lazyCompilationMiddleware, exports_library as library, exports_node as node, optimize, src_rspack_0 as rspack, exports_rspackVersion as rspackVersion, sharing, sources, exports_util as util, exports_version as version, exports_wasm as wasm, web, webworker, __webpack_exports__AsyncDependenciesBlock as AsyncDependenciesBlock, __webpack_exports__ConcatenatedModule as ConcatenatedModule, __webpack_exports__ContextModule as ContextModule, __webpack_exports__Dependency as Dependency, __webpack_exports__EntryDependency as EntryDependency, __webpack_exports__ExternalModule as ExternalModule, __webpack_exports__Module as Module, __webpack_exports__NormalModule as NormalModule };
67249
+ export { BannerPlugin, BrowserHttpImportEsmPlugin, BrowserRequirePlugin, CircularDependencyRspackPlugin, Compilation, Compiler, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, DefinePlugin, DllPlugin, DllReferencePlugin, DynamicEntryPlugin, lib_EntryOptionPlugin as EntryOptionPlugin, EntryPlugin, EnvironmentPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, ExternalsPlugin, HotModuleReplacementPlugin, HtmlRspackPlugin, IgnorePlugin, LightningCssMinimizerRspackPlugin, LoaderOptionsPlugin, LoaderTargetPlugin, ModuleFilenameHelpers_namespaceObject as ModuleFilenameHelpers, MultiCompiler, MultiStats, NoEmitOnErrorsPlugin, NormalModuleReplacementPlugin, ProgressPlugin, ProvidePlugin, RspackOptionsApply, DefaultRuntimeGlobals as RuntimeGlobals, RuntimeModule, RuntimePlugin, SourceMapDevToolPlugin, Stats, statsFactoryUtils_StatsErrorCode as StatsErrorCode, SubresourceIntegrityPlugin, SwcJsMinimizerRspackPlugin, Template, ValidationError, WarnCaseSensitiveModulesPlugin, exports_WebpackError as WebpackError, RspackOptionsApply as WebpackOptionsApply, builtinMemFs, exports_config as config, container, electron, exports_experiments as experiments, javascript, lazyCompilationMiddleware, exports_library as library, exports_node as node, optimize, src_rspack_0 as rspack, exports_rspackVersion as rspackVersion, sharing, sources, exports_util as util, exports_version as version, exports_wasm as wasm, web, webworker, __webpack_exports__AsyncDependenciesBlock as AsyncDependenciesBlock, __webpack_exports__ConcatenatedModule as ConcatenatedModule, __webpack_exports__ContextModule as ContextModule, __webpack_exports__Dependency as Dependency, __webpack_exports__EntryDependency as EntryDependency, __webpack_exports__ExternalModule as ExternalModule, __webpack_exports__Module as Module, __webpack_exports__NormalModule as NormalModule };
@@ -816,6 +816,7 @@ export interface JsEntryOptions {
816
816
  name?: string
817
817
  runtime?: false | string
818
818
  chunkLoading?: false | string
819
+ wasmLoading?: false | string
819
820
  asyncChunks?: boolean
820
821
  publicPath?: "auto" | JsFilename
821
822
  baseUri?: string
@@ -2128,9 +2129,6 @@ rspackFuture?: RawRspackFuture
2128
2129
  cache: boolean | { type: "persistent" } & RawExperimentCacheOptionsPersistent | { type: "memory" }
2129
2130
  useInputFileSystem?: false | Array<RegExp>
2130
2131
  css?: boolean
2131
- inlineConst: boolean
2132
- inlineEnum: boolean
2133
- typeReexportsPresence: boolean
2134
2132
  lazyBarrel: boolean
2135
2133
  deferImport: boolean
2136
2134
  }
@@ -2354,11 +2352,6 @@ commonjs?: boolean | { exports?: boolean | 'skipInEsm' }
2354
2352
  */
2355
2353
  importDynamic?: boolean
2356
2354
  commonjsMagicComments?: boolean
2357
- /**
2358
- * This option is experimental in Rspack only and subject to change or be removed anytime.
2359
- * @experimental
2360
- */
2361
- inlineConst?: boolean
2362
2355
  /**
2363
2356
  * This option is experimental in Rspack only and subject to change or be removed anytime.
2364
2357
  * @experimental
@@ -2582,6 +2575,7 @@ export interface RawOptimizationOptions {
2582
2575
  innerGraph: boolean
2583
2576
  realContentHash: boolean
2584
2577
  mangleExports: boolean | string
2578
+ inlineExports: boolean
2585
2579
  concatenateModules: boolean
2586
2580
  avoidEntryIife: boolean
2587
2581
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/browser",
3
- "version": "1.6.8-canary-2fd81281-20251216180302",
3
+ "version": "1.7.0-canary-a0fc091c-20251217174017",
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.",