@rspack-canary/core 1.7.0-canary-dcc2f8c9-20251223064055 → 1.7.0-canary-e20de023-20251223174329

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.
@@ -16,6 +16,7 @@ import type { CompilationParams } from "./Compilation";
16
16
  import { Compilation } from "./Compilation";
17
17
  import { ContextModuleFactory } from "./ContextModuleFactory";
18
18
  import type { EntryNormalized, OutputNormalized, RspackOptionsNormalized, RspackPluginInstance } from "./config";
19
+ import type { PlatformTargetProperties } from "./config/target";
19
20
  import type { FileSystemInfoEntry } from "./FileSystemInfo";
20
21
  import { rspack } from "./index";
21
22
  import Cache from "./lib/Cache";
@@ -126,6 +127,8 @@ declare class Compiler {
126
127
  get managedPaths(): never;
127
128
  get immutablePaths(): never;
128
129
  get _lastCompilation(): Compilation | undefined;
130
+ get platform(): PlatformTargetProperties;
131
+ set platform(platform: PlatformTargetProperties);
129
132
  /**
130
133
  * Note: This is not a webpack public API, maybe removed in future.
131
134
  * @internal
@@ -10,6 +10,11 @@ export type SwcLoaderTsParserConfig = TsParserConfig;
10
10
  export type SwcLoaderTransformConfig = TransformConfig;
11
11
  export type SwcLoaderOptions = Config & {
12
12
  isModule?: boolean | "unknown";
13
+ /**
14
+ * Collects information from TypeScript's AST for consumption by subsequent Rspack processes,
15
+ * providing better TypeScript development experience and smaller output bundle size.
16
+ */
17
+ collectTypeScriptInfo?: CollectTypeScriptInfoOptions;
13
18
  /**
14
19
  * Experimental features provided by Rspack.
15
20
  * @experimental
@@ -17,6 +22,7 @@ export type SwcLoaderOptions = Config & {
17
22
  rspackExperiments?: {
18
23
  import?: PluginImportOptions;
19
24
  /**
25
+ * @deprecated Use top-level `collectTypeScriptInfo` instead.
20
26
  * Collects information from TypeScript's AST for consumption by subsequent Rspack processes,
21
27
  * providing better TypeScript development experience and smaller output bundle size.
22
28
  */
@@ -1,4 +1,4 @@
1
- export declare const WarnCaseSensitiveModulesPlugin: {
1
+ export declare const CaseSensitivePlugin: {
2
2
  new (): {
3
3
  name: string;
4
4
  _args: [];
@@ -5,6 +5,7 @@ export * from "./AsyncWebAssemblyModulesPlugin";
5
5
  export * from "./BannerPlugin";
6
6
  export * from "./BundlerInfoRspackPlugin";
7
7
  export { createNativePlugin, RspackBuiltinPlugin } from "./base";
8
+ export * from "./CaseSensitivePlugin";
8
9
  export * from "./ChunkPrefetchPreloadPlugin";
9
10
  export * from "./CircularDependencyRspackPlugin";
10
11
  export * from "./CommonJsChunkFormatPlugin";
@@ -79,6 +80,5 @@ export * from "./SplitChunksPlugin";
79
80
  export * from "./SubresourceIntegrityPlugin";
80
81
  export * from "./SwcJsMinimizerPlugin";
81
82
  export * from "./URLPlugin";
82
- export * from "./WarnCaseSensitiveModulesPlugin";
83
83
  export * from "./WebWorkerTemplatePlugin";
84
84
  export * from "./WorkerPlugin";
@@ -1,4 +1,13 @@
1
1
  import type { RspackOptionsNormalized } from "./normalization";
2
- export declare const applyRspackOptionsDefaults: (options: RspackOptionsNormalized) => void;
2
+ export declare const applyRspackOptionsDefaults: (options: RspackOptionsNormalized) => {
3
+ platform: false | {
4
+ web: boolean | null | undefined;
5
+ browser: boolean | null | undefined;
6
+ webworker: boolean | null | undefined;
7
+ node: boolean | null | undefined;
8
+ nwjs: boolean | null | undefined;
9
+ electron: boolean | null | undefined;
10
+ };
11
+ };
3
12
  export declare const applyRspackOptionsBaseDefaults: (options: RspackOptionsNormalized) => void;
4
13
  export declare const getPnpDefault: () => boolean;
@@ -5,17 +5,17 @@
5
5
  export declare const getDefaultTarget: (context: string) => "browserslist" | "web";
6
6
  export type PlatformTargetProperties = {
7
7
  /** web platform, importing of http(s) and std: is available */
8
- web: boolean | null;
8
+ web?: boolean | null;
9
9
  /** browser platform, running in a normal web browser */
10
- browser: boolean | null;
10
+ browser?: boolean | null;
11
11
  /** (Web)Worker platform, running in a web/shared/service worker */
12
- webworker: boolean | null;
12
+ webworker?: boolean | null;
13
13
  /** node platform, require of node built-in modules is available */
14
- node: boolean | null;
14
+ node?: boolean | null;
15
15
  /** nwjs platform, require of legacy nw.gui is available */
16
- nwjs: boolean | null;
16
+ nwjs?: boolean | null;
17
17
  /** electron platform, require of some electron built-in modules is available */
18
- electron: boolean | null;
18
+ electron?: boolean | null;
19
19
  };
20
20
  export type ElectronContextTargetProperties = {
21
21
  /** in main context */
@@ -1,13 +1,11 @@
1
1
  import type { Compiler } from "../Compiler";
2
2
  import { type ModuleFederationManifestPluginOptions } from "./ModuleFederationManifestPlugin";
3
3
  import type { ModuleFederationPluginV1Options } from "./ModuleFederationPluginV1";
4
- import { type ModuleFederationRuntimeExperimentsOptions } from "./ModuleFederationRuntimePlugin";
5
4
  export interface ModuleFederationPluginOptions extends Omit<ModuleFederationPluginV1Options, "enhanced"> {
6
5
  runtimePlugins?: RuntimePlugins;
7
6
  implementation?: string;
8
7
  shareStrategy?: "version-first" | "loaded-first";
9
8
  manifest?: boolean | Omit<ModuleFederationManifestPluginOptions, "remoteAliasMap" | "globalName" | "name" | "exposes" | "shared">;
10
- experiments?: ModuleFederationRuntimeExperimentsOptions;
11
9
  }
12
10
  export type RuntimePlugins = string[] | [string, Record<string, unknown>][];
13
11
  export declare class ModuleFederationPlugin {
@@ -1,9 +1,5 @@
1
- export interface ModuleFederationRuntimeExperimentsOptions {
2
- asyncStartup?: boolean;
3
- }
4
1
  export interface ModuleFederationRuntimeOptions {
5
2
  entryRuntime?: string;
6
- experiments?: ModuleFederationRuntimeExperimentsOptions;
7
3
  }
8
4
  export declare const ModuleFederationRuntimePlugin: {
9
5
  new (options?: ModuleFederationRuntimeOptions | undefined): {
package/dist/exports.d.ts CHANGED
@@ -47,7 +47,11 @@ export declare const util: {
47
47
  cleverMerge: <First, Second>(first: First, second: Second) => First | Second | (First & Second);
48
48
  };
49
49
  export type { BannerPluginArgument, DefinePluginOptions, EntryOptions, ProgressPluginArgument, ProvidePluginOptions } from "./builtin-plugin";
50
- export { BannerPlugin, DefinePlugin, DynamicEntryPlugin, EntryPlugin, ExternalsPlugin, HotModuleReplacementPlugin, IgnorePlugin, type IgnorePluginOptions, NoEmitOnErrorsPlugin, ProgressPlugin, ProvidePlugin, RuntimePlugin, WarnCaseSensitiveModulesPlugin } from "./builtin-plugin";
50
+ export { BannerPlugin, CaseSensitivePlugin,
51
+ /**
52
+ * @deprecated Use `rspack.CaseSensitivePlugin` instead
53
+ */
54
+ CaseSensitivePlugin as WarnCaseSensitiveModulesPlugin, DefinePlugin, DynamicEntryPlugin, EntryPlugin, ExternalsPlugin, HotModuleReplacementPlugin, IgnorePlugin, type IgnorePluginOptions, NoEmitOnErrorsPlugin, ProgressPlugin, ProvidePlugin, RuntimePlugin } from "./builtin-plugin";
51
55
  export { DllPlugin, type DllPluginOptions } from "./lib/DllPlugin";
52
56
  export { DllReferencePlugin, type DllReferencePluginOptions, type DllReferencePluginOptionsContent, type DllReferencePluginOptionsManifest, type DllReferencePluginOptionsSourceType } from "./lib/DllReferencePlugin";
53
57
  export { default as EntryOptionPlugin } from "./lib/EntryOptionPlugin";
package/dist/index.js CHANGED
@@ -288,7 +288,7 @@ for(var __rspack_i in (()=>{
288
288
  SwcJsMinimizerRspackPlugin: ()=>SwcJsMinimizerRspackPlugin,
289
289
  ContextModule: ()=>binding_.ContextModule,
290
290
  DllPlugin: ()=>DllPlugin,
291
- WarnCaseSensitiveModulesPlugin: ()=>WarnCaseSensitiveModulesPlugin,
291
+ WarnCaseSensitiveModulesPlugin: ()=>CaseSensitivePlugin,
292
292
  ProvidePlugin: ()=>ProvidePlugin,
293
293
  Template: ()=>Template,
294
294
  container: ()=>container,
@@ -330,9 +330,10 @@ for(var __rspack_i in (()=>{
330
330
  ModuleFilenameHelpers: ()=>ModuleFilenameHelpers_namespaceObject,
331
331
  MultiCompiler: ()=>MultiCompiler,
332
332
  SourceMapDevToolPlugin: ()=>SourceMapDevToolPlugin,
333
+ CaseSensitivePlugin: ()=>CaseSensitivePlugin,
333
334
  SubresourceIntegrityPlugin: ()=>SubresourceIntegrityPlugin,
334
- library: ()=>exports_library,
335
335
  RuntimeGlobals: ()=>DefaultRuntimeGlobals,
336
+ library: ()=>exports_library,
336
337
  node: ()=>exports_node,
337
338
  rspackVersion: ()=>exports_rspackVersion,
338
339
  util: ()=>util,
@@ -360,6 +361,7 @@ for(var __rspack_i in (()=>{
360
361
  __webpack_require__.r(exports_namespaceObject), __webpack_require__.d(exports_namespaceObject, {
361
362
  AsyncDependenciesBlock: ()=>binding_.AsyncDependenciesBlock,
362
363
  BannerPlugin: ()=>BannerPlugin,
364
+ CaseSensitivePlugin: ()=>CaseSensitivePlugin,
363
365
  CircularDependencyRspackPlugin: ()=>CircularDependencyRspackPlugin,
364
366
  Compilation: ()=>Compilation,
365
367
  Compiler: ()=>Compiler,
@@ -407,7 +409,7 @@ for(var __rspack_i in (()=>{
407
409
  SwcJsMinimizerRspackPlugin: ()=>SwcJsMinimizerRspackPlugin,
408
410
  Template: ()=>Template,
409
411
  ValidationError: ()=>ValidationError,
410
- WarnCaseSensitiveModulesPlugin: ()=>WarnCaseSensitiveModulesPlugin,
412
+ WarnCaseSensitiveModulesPlugin: ()=>CaseSensitivePlugin,
411
413
  WebpackError: ()=>exports_WebpackError,
412
414
  WebpackOptionsApply: ()=>RspackOptionsApply,
413
415
  config: ()=>exports_config,
@@ -2042,7 +2044,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
2042
2044
  version: options.version || "unknown",
2043
2045
  bundler: options.bundler || "rspack",
2044
2046
  force: options.force ?? !0
2045
- })), ChunkPrefetchPreloadPlugin = base_create(binding_.BuiltinPluginName.ChunkPrefetchPreloadPlugin, ()=>{});
2047
+ })), CaseSensitivePlugin = base_create(binding_.BuiltinPluginName.CaseSensitivePlugin, ()=>{}, "compilation"), ChunkPrefetchPreloadPlugin = base_create(binding_.BuiltinPluginName.ChunkPrefetchPreloadPlugin, ()=>{});
2046
2048
  class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
2047
2049
  name = binding_.BuiltinPluginName.CircularDependencyRspackPlugin;
2048
2050
  _options;
@@ -2425,6 +2427,12 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
2425
2427
  query: match[2] ? match[2].replace(/\u200b(.)/g, "$1") : ""
2426
2428
  };
2427
2429
  });
2430
+ function resolveCollectTypeScriptInfo(options) {
2431
+ return {
2432
+ typeExports: options.typeExports,
2433
+ exportedEnum: !0 === options.exportedEnum ? "all" : !1 === options.exportedEnum || void 0 === options.exportedEnum ? "none" : "const-only"
2434
+ };
2435
+ }
2428
2436
  function toFeatures(featureOptions) {
2429
2437
  let feature = 0;
2430
2438
  for (let key of Reflect.ownKeys(featureOptions))if (!0 === featureOptions[key]) switch(key){
@@ -3722,33 +3730,27 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
3722
3730
  let temp = function(identifier, o, options) {
3723
3731
  if (identifier.startsWith(`${BUILTIN_LOADER_PREFIX}swc-loader`)) return ((options, _)=>{
3724
3732
  if (options && "object" == typeof options) {
3725
- options.jsc ??= {}, options.jsc.experimental ??= {}, options.jsc.experimental.disableAllLints ??= !0;
3733
+ options.jsc ??= {}, options.jsc.experimental ??= {}, options.jsc.experimental.disableAllLints ??= !0, options.collectTypeScriptInfo && (options.collectTypeScriptInfo = resolveCollectTypeScriptInfo(options.collectTypeScriptInfo));
3726
3734
  let { rspackExperiments } = options;
3727
- if (rspackExperiments) {
3728
- var options1;
3729
- (rspackExperiments.import || rspackExperiments.pluginImport) && (rspackExperiments.import = function(pluginImport) {
3730
- if (pluginImport) return pluginImport.map((config)=>{
3731
- let rawConfig = {
3732
- ...config,
3733
- style: {}
3734
- };
3735
- if ("boolean" == typeof config.style) rawConfig.style.bool = config.style;
3736
- else if ("string" == typeof config.style) {
3737
- let isTpl = config.style.includes("{{");
3738
- rawConfig.style[isTpl ? "custom" : "css"] = config.style;
3739
- } else {
3740
- var val;
3741
- val = config.style, "[object Object]" === Object.prototype.toString.call(val) && (rawConfig.style = config.style);
3742
- }
3743
- return config.styleLibraryDirectory && (rawConfig.style = {
3744
- styleLibraryDirectory: config.styleLibraryDirectory
3745
- }), rawConfig;
3746
- });
3747
- }(rspackExperiments.import || rspackExperiments.pluginImport)), rspackExperiments.collectTypeScriptInfo && (rspackExperiments.collectTypeScriptInfo = {
3748
- typeExports: (options1 = rspackExperiments.collectTypeScriptInfo).typeExports,
3749
- exportedEnum: !0 === options1.exportedEnum ? "all" : !1 === options1.exportedEnum || void 0 === options1.exportedEnum ? "none" : "const-only"
3735
+ rspackExperiments && ((rspackExperiments.import || rspackExperiments.pluginImport) && (rspackExperiments.import = function(pluginImport) {
3736
+ if (pluginImport) return pluginImport.map((config)=>{
3737
+ let rawConfig = {
3738
+ ...config,
3739
+ style: {}
3740
+ };
3741
+ if ("boolean" == typeof config.style) rawConfig.style.bool = config.style;
3742
+ else if ("string" == typeof config.style) {
3743
+ let isTpl = config.style.includes("{{");
3744
+ rawConfig.style[isTpl ? "custom" : "css"] = config.style;
3745
+ } else {
3746
+ var val;
3747
+ val = config.style, "[object Object]" === Object.prototype.toString.call(val) && (rawConfig.style = config.style);
3748
+ }
3749
+ return config.styleLibraryDirectory && (rawConfig.style = {
3750
+ styleLibraryDirectory: config.styleLibraryDirectory
3751
+ }), rawConfig;
3750
3752
  });
3751
- }
3753
+ }(rspackExperiments.import || rspackExperiments.pluginImport)), rspackExperiments.collectTypeScriptInfo && (deprecate("`rspackExperiments.collectTypeScriptInfo` is deprecated and will be removed in Rspack v2.0. Use top-level `collectTypeScriptInfo` instead."), options.collectTypeScriptInfo || (options.collectTypeScriptInfo = resolveCollectTypeScriptInfo(rspackExperiments.collectTypeScriptInfo)), delete rspackExperiments.collectTypeScriptInfo));
3752
3754
  }
3753
3755
  return options;
3754
3756
  })(o, 0);
@@ -4867,7 +4869,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
4867
4869
  module: options?.minimizerOptions?.module
4868
4870
  }
4869
4871
  };
4870
- }, "compilation"), URLPlugin = base_create(binding_.BuiltinPluginName.URLPlugin, ()=>{}, "compilation"), WarnCaseSensitiveModulesPlugin = base_create(binding_.BuiltinPluginName.WarnCaseSensitiveModulesPlugin, ()=>{}, "compilation");
4872
+ }, "compilation"), URLPlugin = base_create(binding_.BuiltinPluginName.URLPlugin, ()=>{}, "compilation");
4871
4873
  class WebWorkerTemplatePlugin extends RspackBuiltinPlugin {
4872
4874
  name = binding_.BuiltinPluginName.WebWorkerTemplatePlugin;
4873
4875
  raw(compiler) {
@@ -5786,7 +5788,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
5786
5788
  if ("function" != typeof options.entry) for (let key of Object.keys(options.entry))F(options.entry[key], "import", ()=>[
5787
5789
  "./src"
5788
5790
  ]);
5789
- F(options, "devtool", ()=>!!development && "eval"), D(options, "watch", !1), D(options, "profile", !1), F(options, "lazyCompilation", ()=>!!targetProperties && !!targetProperties.web && !targetProperties.electron && !targetProperties.node && !targetProperties.nwjs && {
5791
+ return F(options, "devtool", ()=>!!development && "eval"), D(options, "watch", !1), D(options, "profile", !1), F(options, "lazyCompilation", ()=>!!targetProperties && !!targetProperties.web && !targetProperties.electron && !targetProperties.node && !targetProperties.nwjs && {
5790
5792
  imports: !0,
5791
5793
  entries: !1
5792
5794
  }), D(options, "bail", !1), F(options, "cache", ()=>development), !1 === options.cache && (options.experiments.cache = !1), applyExperimentsDefaults(options.experiments, {
@@ -5828,7 +5830,16 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
5828
5830
  targetProperties,
5829
5831
  mode: options.mode,
5830
5832
  css: options.experiments.css
5831
- }), options.resolve), options.resolveLoader = cleverMerge(getResolveLoaderDefaults(), options.resolveLoader);
5833
+ }), options.resolve), options.resolveLoader = cleverMerge(getResolveLoaderDefaults(), options.resolveLoader), {
5834
+ platform: !1 === targetProperties ? targetProperties : {
5835
+ web: targetProperties.web,
5836
+ browser: targetProperties.browser,
5837
+ webworker: targetProperties.webworker,
5838
+ node: targetProperties.node,
5839
+ nwjs: targetProperties.nwjs,
5840
+ electron: targetProperties.electron
5841
+ }
5842
+ };
5832
5843
  }, applyInfrastructureLoggingDefaults = (infrastructureLogging)=>{
5833
5844
  F(infrastructureLogging, "stream", ()=>process.stderr);
5834
5845
  let tty = infrastructureLogging.stream?.isTTY && "dumb" !== process.env.TERM;
@@ -5836,7 +5847,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
5836
5847
  }, applyExperimentsDefaults = (experiments, { development })=>{
5837
5848
  F(experiments, "cache", ()=>development), D(experiments, "futureDefaults", !1), D(experiments, "lazyCompilation", !1), D(experiments, "asyncWebAssembly", experiments.futureDefaults), D(experiments, "css", !!experiments.futureDefaults || void 0), D(experiments, "topLevelAwait", !0), D(experiments, "deferImport", !1), D(experiments, "buildHttp", void 0), experiments.buildHttp && "object" == typeof experiments.buildHttp && D(experiments.buildHttp, "upgrade", !1), D(experiments, "incremental", {}), "object" == typeof experiments.incremental && (D(experiments.incremental, "silent", !0), D(experiments.incremental, "make", !0), D(experiments.incremental, "inferAsyncModules", !0), D(experiments.incremental, "providedExports", !0), D(experiments.incremental, "dependenciesDiagnostics", !0), D(experiments.incremental, "sideEffects", !0), D(experiments.incremental, "buildChunkGraph", !1), D(experiments.incremental, "moduleIds", !0), D(experiments.incremental, "chunkIds", !0), D(experiments.incremental, "modulesHashes", !0), D(experiments.incremental, "modulesCodegen", !0), D(experiments.incremental, "modulesRuntimeRequirements", !0), D(experiments.incremental, "chunksRuntimeRequirements", !0), D(experiments.incremental, "chunksHashes", !0), D(experiments.incremental, "chunksRender", !0), D(experiments.incremental, "emitAssets", !0)), D(experiments, "rspackFuture", {}), D(experiments, "parallelLoader", !1), D(experiments, "useInputFileSystem", !1), D(experiments, "inlineConst", !0), D(experiments, "inlineEnum", !1), D(experiments, "typeReexportsPresence", !1), D(experiments, "lazyBarrel", !0);
5838
5849
  }, applybundlerInfoDefaults = (rspackFuture, library)=>{
5839
- "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.7.0-canary-dcc2f8c9-20251223064055"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
5850
+ "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.7.0-canary-e20de023-20251223174329"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
5840
5851
  }, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, deferImport })=>{
5841
5852
  if (assertNotNill(module1.parser), assertNotNill(module1.generator), cache ? D(module1, "unsafeCache", /[\\/]node_modules[\\/]/) : D(module1, "unsafeCache", !1), F(module1.parser, "asset", ()=>({})), assertNotNill(module1.parser.asset), F(module1.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module1.parser.asset.dataUrlCondition && D(module1.parser.asset.dataUrlCondition, "maxSize", 8096), F(module1.parser, "javascript", ()=>({})), assertNotNill(module1.parser.javascript), ((parserOptions, { deferImport })=>{
5842
5853
  D(parserOptions, "dynamicImportMode", "lazy"), D(parserOptions, "dynamicImportPrefetch", !1), D(parserOptions, "dynamicImportPreload", !1), D(parserOptions, "url", !0), D(parserOptions, "exprContextCritical", !0), D(parserOptions, "unknownContextCritical", !0), D(parserOptions, "wrappedContextCritical", !1), D(parserOptions, "wrappedContextRegExp", /.*/), D(parserOptions, "strictExportPresence", !1), D(parserOptions, "requireAsExpression", !0), D(parserOptions, "requireDynamic", !0), D(parserOptions, "requireResolve", !0), D(parserOptions, "commonjs", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
@@ -7602,7 +7613,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
7602
7613
  });
7603
7614
  }
7604
7615
  }
7605
- let CORE_VERSION = "1.7.0-canary-dcc2f8c9-20251223064055", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
7616
+ let CORE_VERSION = "1.7.0-canary-e20de023-20251223174329", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
7606
7617
 
7607
7618
  Help:
7608
7619
  Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
@@ -7902,6 +7913,7 @@ Help:
7902
7913
  context;
7903
7914
  cache;
7904
7915
  compilerPath;
7916
+ #platform;
7905
7917
  options;
7906
7918
  unsafeFastDrop = !1;
7907
7919
  __internal_browser_require;
@@ -8000,7 +8012,14 @@ Help:
8000
8012
  }, this.rspack = {
8001
8013
  ...src_rspack_0,
8002
8014
  RuntimeGlobals: compilerRuntimeGlobals
8003
- }, this.root = this, this.outputPath = "", this.inputFileSystem = null, this.intermediateFileSystem = null, this.outputFileSystem = null, this.watchFileSystem = null, this.records = {}, this.options = options, this.context = context, this.cache = new Cache(), this.compilerPath = "", this.running = !1, this.idle = !1, this.watchMode = !1, this.__internal_browser_require = ()=>{
8015
+ }, this.root = this, this.outputPath = "", this.inputFileSystem = null, this.intermediateFileSystem = null, this.outputFileSystem = null, this.watchFileSystem = null, this.records = {}, this.options = options, this.context = context, this.cache = new Cache(), this.compilerPath = "", this.running = !1, this.idle = !1, this.watchMode = !1, this.#platform = {
8016
+ web: null,
8017
+ browser: null,
8018
+ webworker: null,
8019
+ node: null,
8020
+ nwjs: null,
8021
+ electron: null
8022
+ }, this.__internal_browser_require = ()=>{
8004
8023
  throw Error("Cannot execute user defined code in browser without `BrowserRequirePlugin`");
8005
8024
  }, this.resolverFactory = new ResolverFactory(options.resolve.pnp ?? getPnpDefault(), options.resolve, options.resolveLoader), new JsLoaderRspackPlugin(this).apply(this), new ExecuteModulePlugin().apply(this), new TraceHookPlugin().apply(this);
8006
8025
  }
@@ -8019,6 +8038,12 @@ Help:
8019
8038
  get _lastCompilation() {
8020
8039
  return this.#compilation;
8021
8040
  }
8041
+ get platform() {
8042
+ return this.#platform;
8043
+ }
8044
+ set platform(platform) {
8045
+ this.#platform = platform;
8046
+ }
8022
8047
  get __internal__builtinPlugins() {
8023
8048
  return this.#builtinPlugins;
8024
8049
  }
@@ -8285,7 +8310,7 @@ Help:
8285
8310
  this.#registers = this.#createHooksRegisters();
8286
8311
  let inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options1.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
8287
8312
  try {
8288
- this.#instance = new instanceBinding.JsCompiler(this.compilerPath, rawOptions, this.#builtinPlugins, this.#registers, ThreadsafeOutputNodeFS.__to_binding(this.outputFileSystem), this.intermediateFileSystem ? ThreadsafeIntermediateNodeFS.__to_binding(this.intermediateFileSystem) : void 0, inputFileSystem, ResolverFactory.__to_binding(this.resolverFactory), this.unsafeFastDrop), callback(null, this.#instance);
8313
+ this.#instance = new instanceBinding.JsCompiler(this.compilerPath, rawOptions, this.#builtinPlugins, this.#registers, ThreadsafeOutputNodeFS.__to_binding(this.outputFileSystem), this.intermediateFileSystem ? ThreadsafeIntermediateNodeFS.__to_binding(this.intermediateFileSystem) : void 0, inputFileSystem, ResolverFactory.__to_binding(this.resolverFactory), this.unsafeFastDrop, this.#platform), callback(null, this.#instance);
8289
8314
  } catch (err) {
8290
8315
  err instanceof Error && delete err.stack, callback(Error("Failed to create Rspack compiler instance, check the Rspack configuration.", {
8291
8316
  cause: err
@@ -8911,7 +8936,7 @@ Help:
8911
8936
  obj.children = this.stats.map((stat, idx)=>{
8912
8937
  let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
8913
8938
  return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
8914
- }), childOptions.version && (obj.rspackVersion = "1.7.0-canary-dcc2f8c9-20251223064055", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
8939
+ }), childOptions.version && (obj.rspackVersion = "1.7.0-canary-e20de023-20251223174329", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
8915
8940
  let mapError = (j, obj)=>({
8916
8941
  ...obj,
8917
8942
  compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
@@ -9821,7 +9846,7 @@ Help:
9821
9846
  object.hash = context.getStatsCompilation(compilation).hash;
9822
9847
  },
9823
9848
  version: (object)=>{
9824
- object.version = "5.75.0", object.rspackVersion = "1.7.0-canary-dcc2f8c9-20251223064055";
9849
+ object.version = "5.75.0", object.rspackVersion = "1.7.0-canary-e20de023-20251223174329";
9825
9850
  },
9826
9851
  env: (object, _compilation, _context, { _env })=>{
9827
9852
  object.env = _env;
@@ -12015,16 +12040,12 @@ Help:
12015
12040
  };
12016
12041
  }
12017
12042
  raw(compiler) {
12018
- let { remoteType, remotes } = this._options, remoteExternals = {}, importExternals = {};
12043
+ let { remoteType, remotes } = this._options, remoteExternals = {};
12019
12044
  for (let [key, config] of remotes){
12020
12045
  let i = 0;
12021
- for (let external of config.external){
12022
- if (external.startsWith("internal ")) continue;
12023
- let request = `webpack/container/reference/${key}${i ? `/fallback-${i}` : ""}`;
12024
- ("module" === remoteType || "module-import" === remoteType) && external.startsWith(".") ? importExternals[request] = external : remoteExternals[request] = external, i++;
12025
- }
12046
+ for (let external of config.external)!external.startsWith("internal ") && (remoteExternals[`webpack/container/reference/${key}${i ? `/fallback-${i}` : ""}`] = external, i++);
12026
12047
  }
12027
- new ExternalsPlugin(remoteType, remoteExternals, !0).apply(compiler), Object.keys(importExternals).length > 0 && new ExternalsPlugin("import", importExternals, !0).apply(compiler), new ShareRuntimePlugin(this._options.enhanced).apply(compiler);
12048
+ new ExternalsPlugin(remoteType, remoteExternals, !0).apply(compiler), new ShareRuntimePlugin(this._options.enhanced).apply(compiler);
12028
12049
  let rawOptions = {
12029
12050
  remoteType: this._options.remoteType,
12030
12051
  remotes: this._options.remotes.map(([key, r])=>({
@@ -12044,7 +12065,7 @@ Help:
12044
12065
  let _options = JSON.stringify(options || {});
12045
12066
  return binding_default().transform(source, _options);
12046
12067
  }
12047
- let exports_rspackVersion = "1.7.0-canary-dcc2f8c9-20251223064055", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
12068
+ let exports_rspackVersion = "1.7.0-canary-e20de023-20251223174329", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
12048
12069
  getNormalizedRspackOptions: getNormalizedRspackOptions,
12049
12070
  applyRspackOptionsDefaults: applyRspackOptionsDefaults,
12050
12071
  getNormalizedWebpackOptions: getNormalizedRspackOptions,
@@ -12105,49 +12126,34 @@ Help:
12105
12126
  bundlerRuntime: bundlerRuntimePath,
12106
12127
  runtime: runtimePath
12107
12128
  });
12108
- compiler.options.resolve.alias = {
12129
+ if (compiler.options.resolve.alias = {
12109
12130
  "@module-federation/runtime-tools": paths.runtimeTools,
12110
12131
  "@module-federation/runtime": paths.runtime,
12111
12132
  ...compiler.options.resolve.alias
12112
- };
12113
- let entryRuntime = function(paths, options, compiler) {
12114
- let runtimePlugins = options.runtimePlugins ?? [], remoteInfos = getRemoteInfos(options), runtimePluginImports = [], runtimePluginVars = [];
12115
- for(let i = 0; i < runtimePlugins.length; i++){
12116
- let runtimePluginVar = `__module_federation_runtime_plugin_${i}__`, pluginSpec = runtimePlugins[i], pluginPath = Array.isArray(pluginSpec) ? pluginSpec[0] : pluginSpec, pluginParams = Array.isArray(pluginSpec) ? pluginSpec[1] : void 0;
12117
- runtimePluginImports.push(`import ${runtimePluginVar} from ${JSON.stringify(pluginPath)}`);
12118
- let paramsCode = void 0 === pluginParams ? "undefined" : JSON.stringify(pluginParams);
12119
- runtimePluginVars.push(`${runtimePluginVar}(${paramsCode})`);
12120
- }
12121
- let content = [
12122
- `import __module_federation_bundler_runtime__ from ${JSON.stringify(paths.bundlerRuntime)}`,
12123
- ...runtimePluginImports,
12124
- `const __module_federation_runtime_plugins__ = [${runtimePluginVars.join(", ")}]`,
12125
- `const __module_federation_remote_infos__ = ${JSON.stringify(remoteInfos)}`,
12126
- `const __module_federation_container_name__ = ${JSON.stringify(options.name ?? compiler.options.output.uniqueName)}`,
12127
- `const __module_federation_share_strategy__ = ${JSON.stringify(options.shareStrategy ?? "version-first")}`,
12128
- compiler.webpack.Template.getFunctionContent(__webpack_require__("./moduleFederationDefaultRuntime.js"))
12129
- ].join(";");
12130
- return `@module-federation/runtime/rspack.js!=!data:text/javascript,${content}`;
12131
- }(paths, this._options, compiler);
12132
- new ModuleFederationRuntimePlugin({
12133
- entryRuntime,
12134
- experiments: {
12135
- asyncStartup: this._options.experiments?.asyncStartup ?? !1
12136
- }
12137
- }).apply(compiler);
12138
- let v1Options = {
12139
- name: this._options.name,
12140
- exposes: this._options.exposes,
12141
- filename: this._options.filename,
12142
- library: this._options.library,
12143
- remoteType: this._options.remoteType,
12144
- remotes: this._options.remotes,
12145
- runtime: this._options.runtime,
12146
- shareScope: this._options.shareScope,
12147
- shared: this._options.shared,
12133
+ }, new ModuleFederationRuntimePlugin({
12134
+ entryRuntime: function(paths, options, compiler) {
12135
+ let runtimePlugins = options.runtimePlugins ?? [], remoteInfos = getRemoteInfos(options), runtimePluginImports = [], runtimePluginVars = [];
12136
+ for(let i = 0; i < runtimePlugins.length; i++){
12137
+ let runtimePluginVar = `__module_federation_runtime_plugin_${i}__`, pluginSpec = runtimePlugins[i], pluginPath = Array.isArray(pluginSpec) ? pluginSpec[0] : pluginSpec, pluginParams = Array.isArray(pluginSpec) ? pluginSpec[1] : void 0;
12138
+ runtimePluginImports.push(`import ${runtimePluginVar} from ${JSON.stringify(pluginPath)}`);
12139
+ let paramsCode = void 0 === pluginParams ? "undefined" : JSON.stringify(pluginParams);
12140
+ runtimePluginVars.push(`${runtimePluginVar}(${paramsCode})`);
12141
+ }
12142
+ let content = [
12143
+ `import __module_federation_bundler_runtime__ from ${JSON.stringify(paths.bundlerRuntime)}`,
12144
+ ...runtimePluginImports,
12145
+ `const __module_federation_runtime_plugins__ = [${runtimePluginVars.join(", ")}]`,
12146
+ `const __module_federation_remote_infos__ = ${JSON.stringify(remoteInfos)}`,
12147
+ `const __module_federation_container_name__ = ${JSON.stringify(options.name ?? compiler.options.output.uniqueName)}`,
12148
+ `const __module_federation_share_strategy__ = ${JSON.stringify(options.shareStrategy ?? "version-first")}`,
12149
+ compiler.webpack.Template.getFunctionContent(__webpack_require__("./moduleFederationDefaultRuntime.js"))
12150
+ ].join(";");
12151
+ return `@module-federation/runtime/rspack.js!=!data:text/javascript,${content}`;
12152
+ }(paths, this._options, compiler)
12153
+ }).apply(compiler), new webpack.container.ModuleFederationPluginV1({
12154
+ ...this._options,
12148
12155
  enhanced: !0
12149
- };
12150
- if (new webpack.container.ModuleFederationPluginV1(v1Options).apply(compiler), this._options.manifest) {
12156
+ }).apply(compiler), this._options.manifest) {
12151
12157
  let manifestOptions = !0 === this._options.manifest ? {} : {
12152
12158
  ...this._options.manifest
12153
12159
  }, containerName = manifestOptions.name ?? this._options.name, globalName = manifestOptions.globalName ?? function(library) {
@@ -12328,7 +12334,8 @@ Help:
12328
12334
  if (new NodeEnvironmentPlugin({
12329
12335
  infrastructureLogging: options1.infrastructureLogging
12330
12336
  }).apply(compiler), Array.isArray(options1.plugins)) for (let plugin of options1.plugins)"function" == typeof plugin ? plugin.call(compiler, compiler) : plugin && plugin.apply(compiler);
12331
- return applyRspackOptionsDefaults(compiler.options), compiler.hooks.environment.call(), compiler.hooks.afterEnvironment.call(), new RspackOptionsApply().process(compiler.options, compiler), compiler.hooks.initialize.call(), compiler;
12337
+ let { platform } = applyRspackOptionsDefaults(compiler.options);
12338
+ return platform && (compiler.platform = platform), compiler.hooks.environment.call(), compiler.hooks.afterEnvironment.call(), new RspackOptionsApply().process(compiler.options, compiler), compiler.hooks.initialize.call(), compiler;
12332
12339
  }
12333
12340
  function isMultiRspackOptions(o) {
12334
12341
  return Array.isArray(o);
@@ -12378,9 +12385,10 @@ Help:
12378
12385
  }, exports_namespaceObject);
12379
12386
  src_fn.rspack = src_fn, src_fn.webpack = src_fn;
12380
12387
  let src_rspack_0 = src_fn, src_0 = src_rspack_0;
12381
- })(), exports.AsyncDependenciesBlock = __webpack_exports__.AsyncDependenciesBlock, exports.BannerPlugin = __webpack_exports__.BannerPlugin, exports.CircularDependencyRspackPlugin = __webpack_exports__.CircularDependencyRspackPlugin, exports.Compilation = __webpack_exports__.Compilation, exports.Compiler = __webpack_exports__.Compiler, exports.ConcatenatedModule = __webpack_exports__.ConcatenatedModule, exports.ContextModule = __webpack_exports__.ContextModule, exports.ContextReplacementPlugin = __webpack_exports__.ContextReplacementPlugin, exports.CopyRspackPlugin = __webpack_exports__.CopyRspackPlugin, exports.CssExtractRspackPlugin = __webpack_exports__.CssExtractRspackPlugin, exports.DefinePlugin = __webpack_exports__.DefinePlugin, exports.Dependency = __webpack_exports__.Dependency, exports.DllPlugin = __webpack_exports__.DllPlugin, exports.DllReferencePlugin = __webpack_exports__.DllReferencePlugin, exports.DynamicEntryPlugin = __webpack_exports__.DynamicEntryPlugin, exports.EntryDependency = __webpack_exports__.EntryDependency, exports.EntryOptionPlugin = __webpack_exports__.EntryOptionPlugin, exports.EntryPlugin = __webpack_exports__.EntryPlugin, exports.EnvironmentPlugin = __webpack_exports__.EnvironmentPlugin, exports.EvalDevToolModulePlugin = __webpack_exports__.EvalDevToolModulePlugin, exports.EvalSourceMapDevToolPlugin = __webpack_exports__.EvalSourceMapDevToolPlugin, exports.ExternalModule = __webpack_exports__.ExternalModule, exports.ExternalsPlugin = __webpack_exports__.ExternalsPlugin, exports.HotModuleReplacementPlugin = __webpack_exports__.HotModuleReplacementPlugin, exports.HtmlRspackPlugin = __webpack_exports__.HtmlRspackPlugin, exports.IgnorePlugin = __webpack_exports__.IgnorePlugin, exports.LightningCssMinimizerRspackPlugin = __webpack_exports__.LightningCssMinimizerRspackPlugin, exports.LoaderOptionsPlugin = __webpack_exports__.LoaderOptionsPlugin, exports.LoaderTargetPlugin = __webpack_exports__.LoaderTargetPlugin, exports.Module = __webpack_exports__.Module, exports.ModuleFilenameHelpers = __webpack_exports__.ModuleFilenameHelpers, exports.MultiCompiler = __webpack_exports__.MultiCompiler, exports.MultiStats = __webpack_exports__.MultiStats, exports.NoEmitOnErrorsPlugin = __webpack_exports__.NoEmitOnErrorsPlugin, exports.NormalModule = __webpack_exports__.NormalModule, exports.NormalModuleReplacementPlugin = __webpack_exports__.NormalModuleReplacementPlugin, exports.ProgressPlugin = __webpack_exports__.ProgressPlugin, exports.ProvidePlugin = __webpack_exports__.ProvidePlugin, exports.RspackOptionsApply = __webpack_exports__.RspackOptionsApply, exports.RuntimeGlobals = __webpack_exports__.RuntimeGlobals, exports.RuntimeModule = __webpack_exports__.RuntimeModule, exports.RuntimePlugin = __webpack_exports__.RuntimePlugin, exports.SourceMapDevToolPlugin = __webpack_exports__.SourceMapDevToolPlugin, exports.Stats = __webpack_exports__.Stats, exports.StatsErrorCode = __webpack_exports__.StatsErrorCode, exports.SubresourceIntegrityPlugin = __webpack_exports__.SubresourceIntegrityPlugin, exports.SwcJsMinimizerRspackPlugin = __webpack_exports__.SwcJsMinimizerRspackPlugin, exports.Template = __webpack_exports__.Template, exports.ValidationError = __webpack_exports__.ValidationError, exports.WarnCaseSensitiveModulesPlugin = __webpack_exports__.WarnCaseSensitiveModulesPlugin, exports.WebpackError = __webpack_exports__.WebpackError, exports.WebpackOptionsApply = __webpack_exports__.WebpackOptionsApply, exports.config = __webpack_exports__.config, exports.container = __webpack_exports__.container, exports.default = __webpack_exports__.default, exports.electron = __webpack_exports__.electron, exports.experiments = __webpack_exports__.experiments, exports.javascript = __webpack_exports__.javascript, exports.lazyCompilationMiddleware = __webpack_exports__.lazyCompilationMiddleware, exports.library = __webpack_exports__.library, exports.node = __webpack_exports__.node, exports.optimize = __webpack_exports__.optimize, exports.rspack = __webpack_exports__.rspack, exports.rspackVersion = __webpack_exports__.rspackVersion, exports.sharing = __webpack_exports__.sharing, exports.sources = __webpack_exports__.sources, exports.util = __webpack_exports__.util, exports.version = __webpack_exports__.version, exports.wasm = __webpack_exports__.wasm, exports.web = __webpack_exports__.web, exports.webworker = __webpack_exports__.webworker, __webpack_exports__)-1 === [
12388
+ })(), exports.AsyncDependenciesBlock = __webpack_exports__.AsyncDependenciesBlock, exports.BannerPlugin = __webpack_exports__.BannerPlugin, exports.CaseSensitivePlugin = __webpack_exports__.CaseSensitivePlugin, exports.CircularDependencyRspackPlugin = __webpack_exports__.CircularDependencyRspackPlugin, exports.Compilation = __webpack_exports__.Compilation, exports.Compiler = __webpack_exports__.Compiler, exports.ConcatenatedModule = __webpack_exports__.ConcatenatedModule, exports.ContextModule = __webpack_exports__.ContextModule, exports.ContextReplacementPlugin = __webpack_exports__.ContextReplacementPlugin, exports.CopyRspackPlugin = __webpack_exports__.CopyRspackPlugin, exports.CssExtractRspackPlugin = __webpack_exports__.CssExtractRspackPlugin, exports.DefinePlugin = __webpack_exports__.DefinePlugin, exports.Dependency = __webpack_exports__.Dependency, exports.DllPlugin = __webpack_exports__.DllPlugin, exports.DllReferencePlugin = __webpack_exports__.DllReferencePlugin, exports.DynamicEntryPlugin = __webpack_exports__.DynamicEntryPlugin, exports.EntryDependency = __webpack_exports__.EntryDependency, exports.EntryOptionPlugin = __webpack_exports__.EntryOptionPlugin, exports.EntryPlugin = __webpack_exports__.EntryPlugin, exports.EnvironmentPlugin = __webpack_exports__.EnvironmentPlugin, exports.EvalDevToolModulePlugin = __webpack_exports__.EvalDevToolModulePlugin, exports.EvalSourceMapDevToolPlugin = __webpack_exports__.EvalSourceMapDevToolPlugin, exports.ExternalModule = __webpack_exports__.ExternalModule, exports.ExternalsPlugin = __webpack_exports__.ExternalsPlugin, exports.HotModuleReplacementPlugin = __webpack_exports__.HotModuleReplacementPlugin, exports.HtmlRspackPlugin = __webpack_exports__.HtmlRspackPlugin, exports.IgnorePlugin = __webpack_exports__.IgnorePlugin, exports.LightningCssMinimizerRspackPlugin = __webpack_exports__.LightningCssMinimizerRspackPlugin, exports.LoaderOptionsPlugin = __webpack_exports__.LoaderOptionsPlugin, exports.LoaderTargetPlugin = __webpack_exports__.LoaderTargetPlugin, exports.Module = __webpack_exports__.Module, exports.ModuleFilenameHelpers = __webpack_exports__.ModuleFilenameHelpers, exports.MultiCompiler = __webpack_exports__.MultiCompiler, exports.MultiStats = __webpack_exports__.MultiStats, exports.NoEmitOnErrorsPlugin = __webpack_exports__.NoEmitOnErrorsPlugin, exports.NormalModule = __webpack_exports__.NormalModule, exports.NormalModuleReplacementPlugin = __webpack_exports__.NormalModuleReplacementPlugin, exports.ProgressPlugin = __webpack_exports__.ProgressPlugin, exports.ProvidePlugin = __webpack_exports__.ProvidePlugin, exports.RspackOptionsApply = __webpack_exports__.RspackOptionsApply, exports.RuntimeGlobals = __webpack_exports__.RuntimeGlobals, exports.RuntimeModule = __webpack_exports__.RuntimeModule, exports.RuntimePlugin = __webpack_exports__.RuntimePlugin, exports.SourceMapDevToolPlugin = __webpack_exports__.SourceMapDevToolPlugin, exports.Stats = __webpack_exports__.Stats, exports.StatsErrorCode = __webpack_exports__.StatsErrorCode, exports.SubresourceIntegrityPlugin = __webpack_exports__.SubresourceIntegrityPlugin, exports.SwcJsMinimizerRspackPlugin = __webpack_exports__.SwcJsMinimizerRspackPlugin, exports.Template = __webpack_exports__.Template, exports.ValidationError = __webpack_exports__.ValidationError, exports.WarnCaseSensitiveModulesPlugin = __webpack_exports__.WarnCaseSensitiveModulesPlugin, exports.WebpackError = __webpack_exports__.WebpackError, exports.WebpackOptionsApply = __webpack_exports__.WebpackOptionsApply, exports.config = __webpack_exports__.config, exports.container = __webpack_exports__.container, exports.default = __webpack_exports__.default, exports.electron = __webpack_exports__.electron, exports.experiments = __webpack_exports__.experiments, exports.javascript = __webpack_exports__.javascript, exports.lazyCompilationMiddleware = __webpack_exports__.lazyCompilationMiddleware, exports.library = __webpack_exports__.library, exports.node = __webpack_exports__.node, exports.optimize = __webpack_exports__.optimize, exports.rspack = __webpack_exports__.rspack, exports.rspackVersion = __webpack_exports__.rspackVersion, exports.sharing = __webpack_exports__.sharing, exports.sources = __webpack_exports__.sources, exports.util = __webpack_exports__.util, exports.version = __webpack_exports__.version, exports.wasm = __webpack_exports__.wasm, exports.web = __webpack_exports__.web, exports.webworker = __webpack_exports__.webworker, __webpack_exports__)-1 === [
12382
12389
  "AsyncDependenciesBlock",
12383
12390
  "BannerPlugin",
12391
+ "CaseSensitivePlugin",
12384
12392
  "CircularDependencyRspackPlugin",
12385
12393
  "Compilation",
12386
12394
  "Compiler",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/core",
3
- "version": "1.7.0-canary-dcc2f8c9-20251223064055",
3
+ "version": "1.7.0-canary-e20de023-20251223174329",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "The fast Rust-based web bundler with webpack-compatible API",
@@ -56,9 +56,9 @@
56
56
  "webpack-sources": "3.3.3"
57
57
  },
58
58
  "dependencies": {
59
- "@module-federation/runtime-tools": "0.21.6",
59
+ "@module-federation/runtime-tools": "0.22.0",
60
60
  "@rspack/lite-tapable": "1.1.0",
61
- "@rspack/binding": "npm:@rspack-canary/binding@1.7.0-canary-dcc2f8c9-20251223064055"
61
+ "@rspack/binding": "npm:@rspack-canary/binding@1.7.0-canary-e20de023-20251223174329"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@swc/helpers": ">=0.5.1"