@rspack/core 0.6.3-canary-42527c5-20240504004548 → 0.6.3-canary-9bd4169-20240506141944

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.
@@ -6,6 +6,7 @@ const SharePlugin_1 = require("../sharing/SharePlugin");
6
6
  const validate_1 = require("../util/validate");
7
7
  const ContainerPlugin_1 = require("./ContainerPlugin");
8
8
  const ContainerReferencePlugin_1 = require("./ContainerReferencePlugin");
9
+ const ShareRuntimePlugin_1 = require("../sharing/ShareRuntimePlugin");
9
10
  class ModuleFederationPluginV1 {
10
11
  constructor(_options) {
11
12
  this._options = _options;
@@ -24,6 +25,7 @@ class ModuleFederationPluginV1 {
24
25
  compiler.options.output.enabledLibraryTypes.push(library.type);
25
26
  }
26
27
  compiler.hooks.afterPlugins.tap("ModuleFederationPlugin", () => {
28
+ new ShareRuntimePlugin_1.ShareRuntimePlugin(this._options.enhanced).apply(compiler);
27
29
  if (options.exposes &&
28
30
  (Array.isArray(options.exposes)
29
31
  ? options.exposes.length > 0
package/dist/exports.d.ts CHANGED
@@ -11,8 +11,10 @@ export { RuntimeGlobals } from "./RuntimeGlobals";
11
11
  export { Stats } from "./Stats";
12
12
  export type { StatsCompilation, StatsAsset, StatsChunk, StatsError, StatsModule, StatsWarnings } from "./Stats";
13
13
  export { MultiStats } from "./MultiStats";
14
+ export type { Chunk } from "./Chunk";
14
15
  export type { ChunkGroup } from "./ChunkGroup";
15
16
  export type { NormalModuleFactory } from "./NormalModuleFactory";
17
+ export type { Module } from "./Module";
16
18
  export { NormalModule } from "./NormalModule";
17
19
  import * as ModuleFilenameHelpers from "./lib/ModuleFilenameHelpers";
18
20
  export { ModuleFilenameHelpers };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/core",
3
- "version": "0.6.3-canary-42527c5-20240504004548",
3
+ "version": "0.6.3-canary-9bd4169-20240506141944",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "A Fast Rust-based Web Bundler",
@@ -60,8 +60,8 @@
60
60
  "styled-components": "^6.0.8",
61
61
  "terser": "5.27.2",
62
62
  "wast-loader": "^1.11.4",
63
- "@rspack/core": "0.6.3-canary-42527c5-20240504004548",
64
- "@rspack/plugin-minify": "^0.6.3-canary-42527c5-20240504004548"
63
+ "@rspack/core": "0.6.3-canary-9bd4169-20240506141944",
64
+ "@rspack/plugin-minify": "^0.6.3-canary-9bd4169-20240506141944"
65
65
  },
66
66
  "dependencies": {
67
67
  "@module-federation/runtime-tools": "0.1.6",
@@ -75,7 +75,7 @@
75
75
  "webpack-sources": "3.2.3",
76
76
  "zod": "^3.21.4",
77
77
  "zod-validation-error": "1.3.1",
78
- "@rspack/binding": "0.6.3-canary-42527c5-20240504004548"
78
+ "@rspack/binding": "0.6.3-canary-9bd4169-20240506141944"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "@swc/helpers": ">=0.5.1"