@@ -13,7 +13,6 @@ import {
13
13
} from '@module-federation/sdk' ;
14
14
import { normalizeWebpackPath } from '@module-federation/sdk/normalize-webpack-path' ;
15
15
import type { Compiler , WebpackPluginInstance } from 'webpack' ;
16
- import schema from '../../schemas/container/ModuleFederationPlugin' ;
17
16
import SharePlugin from '../sharing/SharePlugin' ;
18
17
import ContainerPlugin from './ContainerPlugin' ;
19
18
import ContainerReferencePlugin from './ContainerReferencePlugin' ;
@@ -27,27 +26,13 @@ const isValidExternalsType = require(
27
26
) ,
28
27
) as typeof import ( 'webpack/schemas/plugins/container/ExternalsType.check.js' ) ;
29
28
30
- const createSchemaValidation = require (
31
- normalizeWebpackPath ( 'webpack/lib/util/create-schema-validation' ) ,
32
- ) as typeof import ( 'webpack/lib/util/create-schema-validation' ) ;
33
- const validate = createSchemaValidation (
34
- // just use schema to validate
35
- ( ) => true ,
36
- ( ) => schema ,
37
- {
38
- name : 'Module Federation Plugin' ,
39
- baseDataPath : 'options' ,
40
- } ,
41
- ) ;
42
-
43
29
class ModuleFederationPlugin implements WebpackPluginInstance {
44
30
private _options : moduleFederationPlugin . ModuleFederationPluginOptions ;
45
31
private _statsPlugin ?: StatsPlugin ;
46
32
/**
47
33
* @param {moduleFederationPlugin.ModuleFederationPluginOptions } options options
48
34
*/
49
35
constructor ( options : moduleFederationPlugin . ModuleFederationPluginOptions ) {
50
- validate ( options ) ;
51
36
this . _options = options ;
52
37
}
53
38
0 commit comments