@module-federation/data-prefetch 2.2.0 → 2.2.2

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.
@@ -1,6 +1,6 @@
1
1
  import { moduleFederationPlugin } from '@module-federation/sdk';
2
- import type { Compiler, WebpackPluginInstance } from 'webpack';
3
- declare const RuntimeGlobals: typeof import("webpack").RuntimeGlobals;
2
+ import type { Compiler, WebpackPluginInstance } from '@module-federation/webpack-type';
3
+ declare const RuntimeGlobals: typeof import("@module-federation/webpack-type/lib/RuntimeGlobals");
4
4
  export declare function getFederationGlobalScope(runtimeGlobals: typeof RuntimeGlobals): string;
5
5
  export declare class PrefetchPlugin implements WebpackPluginInstance {
6
6
  options: moduleFederationPlugin.ModuleFederationPluginOptions;
@@ -1,6 +1,6 @@
1
1
  import { moduleFederationPlugin } from '@module-federation/sdk';
2
- import type { Compiler, WebpackPluginInstance } from 'webpack';
3
- declare const RuntimeGlobals: typeof import("webpack").RuntimeGlobals;
2
+ import type { Compiler, WebpackPluginInstance } from '@module-federation/webpack-type';
3
+ declare const RuntimeGlobals: typeof import("@module-federation/webpack-type/lib/RuntimeGlobals");
4
4
  export declare function getFederationGlobalScope(runtimeGlobals: typeof RuntimeGlobals): string;
5
5
  export declare class PrefetchPlugin implements WebpackPluginInstance {
6
6
  options: moduleFederationPlugin.ModuleFederationPluginOptions;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@module-federation/data-prefetch",
3
3
  "description": "Module Federation Data Prefetch",
4
- "version": "2.2.0",
4
+ "version": "2.2.2",
5
5
  "type": "module",
6
6
  "author": "nieyan <nyqykk@foxmail.com>",
7
7
  "homepage": "https://github.com/module-federation/core",
@@ -119,12 +119,12 @@
119
119
  "react-router": "^6.30.2",
120
120
  "react-test-renderer": "^18.2.0",
121
121
  "ts-jest": "29.0.1",
122
- "webpack": "5.104.1"
122
+ "@module-federation/webpack-type": "0.0.1"
123
123
  },
124
124
  "dependencies": {
125
125
  "fs-extra": "9.1.0",
126
- "@module-federation/runtime": "2.2.0",
127
- "@module-federation/sdk": "2.2.0"
126
+ "@module-federation/runtime": "2.2.2",
127
+ "@module-federation/sdk": "2.2.2"
128
128
  },
129
129
  "scripts": {
130
130
  "test": "jest",