@module-federation/enhanced 0.1.4 → 0.1.5
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.
- package/package.json +8 -8
- package/dist/package.json +0 -67
- package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +0 -57
- package/dist/src/declarations/plugins/container/Dependency.d.ts +0 -285
- package/dist/src/declarations/plugins/container/Module.d.ts +0 -138
- package/dist/src/declarations/plugins/container/ModuleFactory.d.ts +0 -33
- package/dist/src/declarations/plugins/container/ObjectDeserializerContext.d.ts +0 -4
- package/dist/src/declarations/plugins/container/StaticExportsDependency.d.ts +0 -28
- package/dist/src/declarations/plugins/container/Template.d.ts +0 -198
- package/dist/src/declarations/plugins/container/WebpackError.d.ts +0 -32
- package/dist/src/declarations/plugins/container/WebpackOptions.d.ts +0 -140
- package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +0 -74
- package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +0 -67
- package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +0 -78
- package/dist/src/index.d.ts +0 -14
- package/dist/src/index.js +0 -37
- package/dist/src/index.js.map +0 -1
- package/dist/src/lib/Constants.d.ts +0 -117
- package/dist/src/lib/Constants.js +0 -125
- package/dist/src/lib/Constants.js.map +0 -1
- package/dist/src/lib/RuntimeGlobals.d.ts +0 -0
- package/dist/src/lib/RuntimeGlobals.js +0 -316
- package/dist/src/lib/RuntimeGlobals.js.map +0 -1
- package/dist/src/lib/container/AsyncBoundaryPlugin.d.ts +0 -20
- package/dist/src/lib/container/AsyncBoundaryPlugin.js +0 -183
- package/dist/src/lib/container/AsyncBoundaryPlugin.js.map +0 -1
- package/dist/src/lib/container/ContainerEntryDependency.d.ts +0 -24
- package/dist/src/lib/container/ContainerEntryDependency.js +0 -39
- package/dist/src/lib/container/ContainerEntryDependency.js.map +0 -1
- package/dist/src/lib/container/ContainerEntryModule.d.ts +0 -75
- package/dist/src/lib/container/ContainerEntryModule.js +0 -250
- package/dist/src/lib/container/ContainerEntryModule.js.map +0 -1
- package/dist/src/lib/container/ContainerEntryModuleFactory.d.ts +0 -15
- package/dist/src/lib/container/ContainerEntryModuleFactory.js +0 -30
- package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +0 -1
- package/dist/src/lib/container/ContainerExposedDependency.d.ts +0 -19
- package/dist/src/lib/container/ContainerExposedDependency.js +0 -49
- package/dist/src/lib/container/ContainerExposedDependency.js.map +0 -1
- package/dist/src/lib/container/ContainerPlugin.d.ts +0 -13
- package/dist/src/lib/container/ContainerPlugin.js +0 -185
- package/dist/src/lib/container/ContainerPlugin.js.map +0 -1
- package/dist/src/lib/container/ContainerReferencePlugin.d.ts +0 -14
- package/dist/src/lib/container/ContainerReferencePlugin.js +0 -102
- package/dist/src/lib/container/ContainerReferencePlugin.js.map +0 -1
- package/dist/src/lib/container/FallbackDependency.d.ts +0 -15
- package/dist/src/lib/container/FallbackDependency.js +0 -47
- package/dist/src/lib/container/FallbackDependency.js.map +0 -1
- package/dist/src/lib/container/FallbackItemDependency.d.ts +0 -3
- package/dist/src/lib/container/FallbackItemDependency.js +0 -26
- package/dist/src/lib/container/FallbackItemDependency.js.map +0 -1
- package/dist/src/lib/container/FallbackModule.d.ts +0 -54
- package/dist/src/lib/container/FallbackModule.js +0 -152
- package/dist/src/lib/container/FallbackModule.js.map +0 -1
- package/dist/src/lib/container/FallbackModuleFactory.d.ts +0 -11
- package/dist/src/lib/container/FallbackModuleFactory.js +0 -28
- package/dist/src/lib/container/FallbackModuleFactory.js.map +0 -1
- package/dist/src/lib/container/HoistContainerReferencesPlugin.d.ts +0 -14
- package/dist/src/lib/container/HoistContainerReferencesPlugin.js +0 -61
- package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +0 -1
- package/dist/src/lib/container/ModuleFederationPlugin.d.ts +0 -16
- package/dist/src/lib/container/ModuleFederationPlugin.js +0 -122
- package/dist/src/lib/container/ModuleFederationPlugin.js.map +0 -1
- package/dist/src/lib/container/RemoteModule.d.ts +0 -90
- package/dist/src/lib/container/RemoteModule.js +0 -148
- package/dist/src/lib/container/RemoteModule.js.map +0 -1
- package/dist/src/lib/container/RemoteRuntimeModule.d.ts +0 -12
- package/dist/src/lib/container/RemoteRuntimeModule.js +0 -101
- package/dist/src/lib/container/RemoteRuntimeModule.js.map +0 -1
- package/dist/src/lib/container/RemoteToExternalDependency.d.ts +0 -4
- package/dist/src/lib/container/RemoteToExternalDependency.js +0 -26
- package/dist/src/lib/container/RemoteToExternalDependency.js.map +0 -1
- package/dist/src/lib/container/constant.d.ts +0 -3
- package/dist/src/lib/container/constant.js +0 -12
- package/dist/src/lib/container/constant.js.map +0 -1
- package/dist/src/lib/container/options.d.ts +0 -26
- package/dist/src/lib/container/options.js +0 -81
- package/dist/src/lib/container/options.js.map +0 -1
- package/dist/src/lib/container/runtime/FederationRuntimeModule.d.ts +0 -13
- package/dist/src/lib/container/runtime/FederationRuntimeModule.js +0 -27
- package/dist/src/lib/container/runtime/FederationRuntimeModule.js.map +0 -1
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts +0 -17
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +0 -200
- package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +0 -1
- package/dist/src/lib/container/runtime/getFederationGlobal.d.ts +0 -5
- package/dist/src/lib/container/runtime/getFederationGlobal.js +0 -24
- package/dist/src/lib/container/runtime/getFederationGlobal.js.map +0 -1
- package/dist/src/lib/container/runtime/utils.d.ts +0 -16
- package/dist/src/lib/container/runtime/utils.js +0 -83
- package/dist/src/lib/container/runtime/utils.js.map +0 -1
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +0 -3
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +0 -26
- package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +0 -1
- package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +0 -99
- package/dist/src/lib/sharing/ConsumeSharedModule.js +0 -206
- package/dist/src/lib/sharing/ConsumeSharedModule.js.map +0 -1
- package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +0 -30
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js +0 -245
- package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +0 -1
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +0 -31
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +0 -108
- package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +0 -1
- package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +0 -3
- package/dist/src/lib/sharing/ProvideForSharedDependency.js +0 -27
- package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +0 -1
- package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +0 -36
- package/dist/src/lib/sharing/ProvideSharedDependency.js +0 -70
- package/dist/src/lib/sharing/ProvideSharedDependency.js.map +0 -1
- package/dist/src/lib/sharing/ProvideSharedModule.d.ts +0 -67
- package/dist/src/lib/sharing/ProvideSharedModule.js +0 -186
- package/dist/src/lib/sharing/ProvideSharedModule.js.map +0 -1
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +0 -18
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +0 -30
- package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +0 -1
- package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +0 -47
- package/dist/src/lib/sharing/ProvideSharedPlugin.js +0 -195
- package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +0 -1
- package/dist/src/lib/sharing/SharePlugin.d.ts +0 -41
- package/dist/src/lib/sharing/SharePlugin.js +0 -79
- package/dist/src/lib/sharing/SharePlugin.js.map +0 -1
- package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +0 -14
- package/dist/src/lib/sharing/ShareRuntimeModule.js +0 -89
- package/dist/src/lib/sharing/ShareRuntimeModule.js.map +0 -1
- package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +0 -12
- package/dist/src/lib/sharing/resolveMatchedConfigs.js +0 -66
- package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +0 -1
- package/dist/src/lib/sharing/utils.d.ts +0 -37
- package/dist/src/lib/sharing/utils.js +0 -359
- package/dist/src/lib/sharing/utils.js.map +0 -1
- package/dist/src/rspack.d.ts +0 -1
- package/dist/src/rspack.js +0 -6
- package/dist/src/rspack.js.map +0 -1
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +0 -5
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +0 -19
- package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +0 -1
- package/dist/src/runtime.d.ts +0 -1
- package/dist/src/runtime.js +0 -18
- package/dist/src/runtime.js.map +0 -1
- package/dist/src/schemas/container/ContainerPlugin.check.d.ts +0 -7
- package/dist/src/schemas/container/ContainerPlugin.check.js +0 -2318
- package/dist/src/schemas/container/ContainerPlugin.check.js.map +0 -1
- package/dist/src/schemas/container/ContainerPlugin.d.ts +0 -289
- package/dist/src/schemas/container/ContainerPlugin.js +0 -326
- package/dist/src/schemas/container/ContainerPlugin.js.map +0 -1
- package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +0 -7
- package/dist/src/schemas/container/ContainerReferencePlugin.check.js +0 -939
- package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +0 -1
- package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +0 -87
- package/dist/src/schemas/container/ContainerReferencePlugin.js +0 -132
- package/dist/src/schemas/container/ContainerReferencePlugin.js.map +0 -1
- package/dist/src/schemas/container/ModuleFederationPlugin.check.d.ts +0 -9
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js +0 -4001
- package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +0 -1
- package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +0 -626
- package/dist/src/schemas/container/ModuleFederationPlugin.js +0 -720
- package/dist/src/schemas/container/ModuleFederationPlugin.js.map +0 -1
- package/dist/src/schemas/sharing/ProviderSharedPlugin.check.d.ts +0 -7
- package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +0 -434
- package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +0 -1
- package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +0 -104
- package/dist/src/schemas/sharing/ProviderSharedPlugin.js +0 -119
- package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +0 -1
- package/dist/src/types/runtime.d.ts +0 -7
- package/dist/src/types/runtime.js +0 -3
- package/dist/src/types/runtime.js.map +0 -1
- package/dist/src/webpack.d.ts +0 -1
- package/dist/src/webpack.js +0 -9
- package/dist/src/webpack.js.map +0 -1
- package/dist/src/wrapper/AsyncBoundaryPlugin.d.ts +0 -8
- package/dist/src/wrapper/AsyncBoundaryPlugin.js +0 -19
- package/dist/src/wrapper/AsyncBoundaryPlugin.js.map +0 -1
- package/dist/src/wrapper/ConsumeSharedPlugin.d.ts +0 -8
- package/dist/src/wrapper/ConsumeSharedPlugin.js +0 -19
- package/dist/src/wrapper/ConsumeSharedPlugin.js.map +0 -1
- package/dist/src/wrapper/ContainerPlugin.d.ts +0 -8
- package/dist/src/wrapper/ContainerPlugin.js +0 -19
- package/dist/src/wrapper/ContainerPlugin.js.map +0 -1
- package/dist/src/wrapper/ContainerReferencePlugin.d.ts +0 -8
- package/dist/src/wrapper/ContainerReferencePlugin.js +0 -19
- package/dist/src/wrapper/ContainerReferencePlugin.js.map +0 -1
- package/dist/src/wrapper/FederationRuntimePlugin.d.ts +0 -9
- package/dist/src/wrapper/FederationRuntimePlugin.js +0 -22
- package/dist/src/wrapper/FederationRuntimePlugin.js.map +0 -1
- package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +0 -6
- package/dist/src/wrapper/HoistContainerReferencesPlugin.js +0 -18
- package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +0 -1
- package/dist/src/wrapper/ModuleFederationPlugin.d.ts +0 -8
- package/dist/src/wrapper/ModuleFederationPlugin.js +0 -24
- package/dist/src/wrapper/ModuleFederationPlugin.js.map +0 -1
- package/dist/src/wrapper/ProvideSharedPlugin.d.ts +0 -8
- package/dist/src/wrapper/ProvideSharedPlugin.js +0 -19
- package/dist/src/wrapper/ProvideSharedPlugin.js.map +0 -1
- package/dist/src/wrapper/SharePlugin.d.ts +0 -8
- package/dist/src/wrapper/SharePlugin.js +0 -19
- package/dist/src/wrapper/SharePlugin.js.map +0 -1
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//@ts-nocheck
|
|
4
|
-
exports.default = {
|
|
5
|
-
definitions: {
|
|
6
|
-
Provides: {
|
|
7
|
-
description: 'Modules that should be provided as shared modules to the share scope. When provided, property name is used to match modules, otherwise this is automatically inferred from share key.',
|
|
8
|
-
anyOf: [
|
|
9
|
-
{
|
|
10
|
-
type: 'array',
|
|
11
|
-
items: {
|
|
12
|
-
description: 'Modules that should be provided as shared modules to the share scope.',
|
|
13
|
-
anyOf: [
|
|
14
|
-
{
|
|
15
|
-
$ref: '#/definitions/ProvidesItem',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
$ref: '#/definitions/ProvidesObject',
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
$ref: '#/definitions/ProvidesObject',
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
},
|
|
28
|
-
ProvidesConfig: {
|
|
29
|
-
description: 'Advanced configuration for modules that should be provided as shared modules to the share scope.',
|
|
30
|
-
type: 'object',
|
|
31
|
-
additionalProperties: false,
|
|
32
|
-
properties: {
|
|
33
|
-
eager: {
|
|
34
|
-
description: 'Include the provided module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.',
|
|
35
|
-
type: 'boolean',
|
|
36
|
-
},
|
|
37
|
-
requiredVersion: {
|
|
38
|
-
description: 'Version requirement from module in share scope.',
|
|
39
|
-
anyOf: [
|
|
40
|
-
{
|
|
41
|
-
description: 'No version requirement check.',
|
|
42
|
-
enum: [false],
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
description: "Version as string. Can be prefixed with '^' or '~' for minimum matches. Each part of the version should be separated by a dot '.'.",
|
|
46
|
-
type: 'string',
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
},
|
|
50
|
-
shareKey: {
|
|
51
|
-
description: 'Key in the share scope under which the shared modules should be stored.',
|
|
52
|
-
type: 'string',
|
|
53
|
-
minLength: 1,
|
|
54
|
-
},
|
|
55
|
-
shareScope: {
|
|
56
|
-
description: 'Share scope name.',
|
|
57
|
-
type: 'string',
|
|
58
|
-
minLength: 1,
|
|
59
|
-
},
|
|
60
|
-
singleton: {
|
|
61
|
-
description: 'Allow only a single version of the shared module in share scope (disabled by default).',
|
|
62
|
-
type: 'boolean',
|
|
63
|
-
},
|
|
64
|
-
strictVersion: {
|
|
65
|
-
description: 'Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).',
|
|
66
|
-
type: 'boolean',
|
|
67
|
-
},
|
|
68
|
-
version: {
|
|
69
|
-
description: 'Version of the provided module. Will replace lower matching versions, but not higher.',
|
|
70
|
-
anyOf: [
|
|
71
|
-
{
|
|
72
|
-
description: "Don't provide a version.",
|
|
73
|
-
enum: [false],
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
description: "Version as string. Each part of the version should be separated by a dot '.'.",
|
|
77
|
-
type: 'string',
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
ProvidesItem: {
|
|
84
|
-
description: 'Request to a module that should be provided as shared module to the share scope (will be resolved when relative).',
|
|
85
|
-
type: 'string',
|
|
86
|
-
minLength: 1,
|
|
87
|
-
},
|
|
88
|
-
ProvidesObject: {
|
|
89
|
-
description: 'Modules that should be provided as shared modules to the share scope. Property names are used as share keys.',
|
|
90
|
-
type: 'object',
|
|
91
|
-
additionalProperties: {
|
|
92
|
-
description: 'Modules that should be provided as shared modules to the share scope.',
|
|
93
|
-
anyOf: [
|
|
94
|
-
{
|
|
95
|
-
$ref: '#/definitions/ProvidesConfig',
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
$ref: '#/definitions/ProvidesItem',
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
title: 'ProvideSharedPluginOptions',
|
|
105
|
-
type: 'object',
|
|
106
|
-
additionalProperties: false,
|
|
107
|
-
properties: {
|
|
108
|
-
provides: {
|
|
109
|
-
$ref: '#/definitions/Provides',
|
|
110
|
-
},
|
|
111
|
-
shareScope: {
|
|
112
|
-
description: "Share scope name used for all provided modules (defaults to 'default').",
|
|
113
|
-
type: 'string',
|
|
114
|
-
minLength: 1,
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
required: ['provides'],
|
|
118
|
-
};
|
|
119
|
-
//# sourceMappingURL=ProviderSharedPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderSharedPlugin.js","sourceRoot":"","sources":["../../../../src/schemas/sharing/ProviderSharedPlugin.ts"],"names":[],"mappings":";;AAAA,aAAa;AACb,kBAAe;IACb,WAAW,EAAE;QACX,QAAQ,EAAE;YACR,WAAW,EACT,uLAAuL;YACzL,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACL,WAAW,EACT,uEAAuE;wBACzE,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,4BAA4B;6BACnC;4BACD;gCACE,IAAI,EAAE,8BAA8B;6BACrC;yBACF;qBACF;iBACF;gBACD;oBACE,IAAI,EAAE,8BAA8B;iBACrC;aACF;SACF;QACD,cAAc,EAAE;YACd,WAAW,EACT,kGAAkG;YACpG,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,WAAW,EACT,oLAAoL;oBACtL,IAAI,EAAE,SAAS;iBAChB;gBACD,eAAe,EAAE;oBACf,WAAW,EAAE,iDAAiD;oBAC9D,KAAK,EAAE;wBACL;4BACE,WAAW,EAAE,+BAA+B;4BAC5C,IAAI,EAAE,CAAC,KAAK,CAAC;yBACd;wBACD;4BACE,WAAW,EACT,oIAAoI;4BACtI,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;gBACD,QAAQ,EAAE;oBACR,WAAW,EACT,yEAAyE;oBAC3E,IAAI,EAAE,QAAQ;oBACd,SAAS,EAAE,CAAC;iBACb;gBACD,UAAU,EAAE;oBACV,WAAW,EAAE,mBAAmB;oBAChC,IAAI,EAAE,QAAQ;oBACd,SAAS,EAAE,CAAC;iBACb;gBACD,SAAS,EAAE;oBACT,WAAW,EACT,wFAAwF;oBAC1F,IAAI,EAAE,SAAS;iBAChB;gBACD,aAAa,EAAE;oBACb,WAAW,EACT,2NAA2N;oBAC7N,IAAI,EAAE,SAAS;iBAChB;gBACD,OAAO,EAAE;oBACP,WAAW,EACT,uFAAuF;oBACzF,KAAK,EAAE;wBACL;4BACE,WAAW,EAAE,0BAA0B;4BACvC,IAAI,EAAE,CAAC,KAAK,CAAC;yBACd;wBACD;4BACE,WAAW,EACT,+EAA+E;4BACjF,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;SACF;QACD,YAAY,EAAE;YACZ,WAAW,EACT,mHAAmH;YACrH,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;SACb;QACD,cAAc,EAAE;YACd,WAAW,EACT,8GAA8G;YAChH,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE;gBACpB,WAAW,EACT,uEAAuE;gBACzE,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,8BAA8B;qBACrC;oBACD;wBACE,IAAI,EAAE,4BAA4B;qBACnC;iBACF;aACF;SACF;KACF;IACD,KAAK,EAAE,4BAA4B;IACnC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,IAAI,EAAE,wBAAwB;SAC/B;QACD,UAAU,EAAE;YACV,WAAW,EACT,yEAAyE;YAC3E,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;SACb;KACF;IACD,QAAQ,EAAE,CAAC,UAAU,CAAC;CACvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/types/runtime.ts"],"names":[],"mappings":""}
|
package/dist/src/webpack.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ModuleFederationPlugin } from './wrapper/ModuleFederationPlugin';
|
package/dist/src/webpack.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ModuleFederationPlugin = void 0;
|
|
7
|
-
var ModuleFederationPlugin_1 = require("./wrapper/ModuleFederationPlugin");
|
|
8
|
-
Object.defineProperty(exports, "ModuleFederationPlugin", { enumerable: true, get: function () { return __importDefault(ModuleFederationPlugin_1).default; } });
|
|
9
|
-
//# sourceMappingURL=webpack.js.map
|
package/dist/src/webpack.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webpack.js","sourceRoot":"","sources":["../../src/webpack.ts"],"names":[],"mappings":";;;;;;AAAA,2EAAqF;AAA5E,iJAAA,OAAO,OAA0B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { WebpackPluginInstance, Compiler } from 'webpack';
|
|
2
|
-
import type { Options } from '../lib/container/AsyncBoundaryPlugin';
|
|
3
|
-
export default class AsyncBoundaryPlugin implements WebpackPluginInstance {
|
|
4
|
-
private _options;
|
|
5
|
-
name: string;
|
|
6
|
-
constructor(options: Options);
|
|
7
|
-
apply(compiler: Compiler): void;
|
|
8
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const normalize_webpack_path_1 = require("@module-federation/sdk/normalize-webpack-path");
|
|
4
|
-
const PLUGIN_NAME = 'AsyncBoundaryPlugin';
|
|
5
|
-
class AsyncBoundaryPlugin {
|
|
6
|
-
constructor(options) {
|
|
7
|
-
this._options = options;
|
|
8
|
-
this.name = PLUGIN_NAME;
|
|
9
|
-
}
|
|
10
|
-
apply(compiler) {
|
|
11
|
-
process.env['FEDERATION_WEBPACK_PATH'] =
|
|
12
|
-
process.env['FEDERATION_WEBPACK_PATH'] || (0, normalize_webpack_path_1.getWebpackPath)(compiler);
|
|
13
|
-
const CoreAsyncBoundaryPlugin = require('../lib/container/AsyncBoundaryPlugin')
|
|
14
|
-
.default;
|
|
15
|
-
new CoreAsyncBoundaryPlugin(this._options).apply(compiler);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.default = AsyncBoundaryPlugin;
|
|
19
|
-
//# sourceMappingURL=AsyncBoundaryPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncBoundaryPlugin.js","sourceRoot":"","sources":["../../../src/wrapper/AsyncBoundaryPlugin.ts"],"names":[],"mappings":";;AAEA,0FAA+E;AAE/E,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAE1C,MAAqB,mBAAmB;IAItC,YAAY,OAAgB;QAC1B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,QAAkB;QACtB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACpC,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,IAAA,uCAAc,EAAC,QAAQ,CAAC,CAAC;QACrE,MAAM,uBAAuB,GAC3B,OAAO,CAAC,sCAAsC,CAAC;aAC5C,OAAwE,CAAC;QAC9E,IAAI,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7D,CAAC;CACF;AAjBD,sCAiBC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { WebpackPluginInstance, Compiler } from 'webpack';
|
|
2
|
-
import type { ConsumeSharedPluginOptions } from '../declarations/plugins/sharing/ConsumeSharedPlugin';
|
|
3
|
-
export default class ConsumeSharedPlugin implements WebpackPluginInstance {
|
|
4
|
-
private _options;
|
|
5
|
-
name: string;
|
|
6
|
-
constructor(options: ConsumeSharedPluginOptions);
|
|
7
|
-
apply(compiler: Compiler): void;
|
|
8
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const normalize_webpack_path_1 = require("@module-federation/sdk/normalize-webpack-path");
|
|
4
|
-
const PLUGIN_NAME = 'ConsumeSharedPlugin';
|
|
5
|
-
class ConsumeSharedPlugin {
|
|
6
|
-
constructor(options) {
|
|
7
|
-
this._options = options;
|
|
8
|
-
this.name = PLUGIN_NAME;
|
|
9
|
-
}
|
|
10
|
-
apply(compiler) {
|
|
11
|
-
process.env['FEDERATION_WEBPACK_PATH'] =
|
|
12
|
-
process.env['FEDERATION_WEBPACK_PATH'] || (0, normalize_webpack_path_1.getWebpackPath)(compiler);
|
|
13
|
-
const CoreConsumeSharedPlugin = require('../lib/sharing/ConsumeSharedPlugin')
|
|
14
|
-
.default;
|
|
15
|
-
new CoreConsumeSharedPlugin(this._options).apply(compiler);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.default = ConsumeSharedPlugin;
|
|
19
|
-
//# sourceMappingURL=ConsumeSharedPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConsumeSharedPlugin.js","sourceRoot":"","sources":["../../../src/wrapper/ConsumeSharedPlugin.ts"],"names":[],"mappings":";;AAEA,0FAA+E;AAE/E,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAE1C,MAAqB,mBAAmB;IAItC,YAAY,OAAmC;QAC7C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,QAAkB;QACtB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACpC,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,IAAA,uCAAc,EAAC,QAAQ,CAAC,CAAC;QACrE,MAAM,uBAAuB,GAC3B,OAAO,CAAC,oCAAoC,CAAC;aAC1C,OAAsE,CAAC;QAC5E,IAAI,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7D,CAAC;CACF;AAjBD,sCAiBC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { WebpackPluginInstance, Compiler } from 'webpack';
|
|
2
|
-
import type { containerPlugin } from '@module-federation/sdk';
|
|
3
|
-
export default class ContainerPlugin implements WebpackPluginInstance {
|
|
4
|
-
private _options;
|
|
5
|
-
name: string;
|
|
6
|
-
constructor(options: containerPlugin.ContainerPluginOptions);
|
|
7
|
-
apply(compiler: Compiler): void;
|
|
8
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const normalize_webpack_path_1 = require("@module-federation/sdk/normalize-webpack-path");
|
|
4
|
-
const PLUGIN_NAME = 'ContainerPlugin';
|
|
5
|
-
class ContainerPlugin {
|
|
6
|
-
constructor(options) {
|
|
7
|
-
this._options = options;
|
|
8
|
-
this.name = PLUGIN_NAME;
|
|
9
|
-
}
|
|
10
|
-
apply(compiler) {
|
|
11
|
-
process.env['FEDERATION_WEBPACK_PATH'] =
|
|
12
|
-
process.env['FEDERATION_WEBPACK_PATH'] || (0, normalize_webpack_path_1.getWebpackPath)(compiler);
|
|
13
|
-
const CoreContainerPlugin = require('../lib/container/ContainerPlugin')
|
|
14
|
-
.default;
|
|
15
|
-
new CoreContainerPlugin(this._options).apply(compiler);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.default = ContainerPlugin;
|
|
19
|
-
//# sourceMappingURL=ContainerPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContainerPlugin.js","sourceRoot":"","sources":["../../../src/wrapper/ContainerPlugin.ts"],"names":[],"mappings":";;AAEA,0FAA+E;AAE/E,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAEtC,MAAqB,eAAe;IAIlC,YAAY,OAA+C;QACzD,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,QAAkB;QACtB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACpC,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,IAAA,uCAAc,EAAC,QAAQ,CAAC,CAAC;QACrE,MAAM,mBAAmB,GAAG,OAAO,CAAC,kCAAkC,CAAC;aACpE,OAAoE,CAAC;QACxE,IAAI,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACzD,CAAC;CACF;AAhBD,kCAgBC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { WebpackPluginInstance, Compiler } from 'webpack';
|
|
2
|
-
import type { containerReferencePlugin } from '@module-federation/sdk';
|
|
3
|
-
export default class ContainerReferencePlugin implements WebpackPluginInstance {
|
|
4
|
-
private _options;
|
|
5
|
-
name: string;
|
|
6
|
-
constructor(options: containerReferencePlugin.ContainerReferencePluginOptions);
|
|
7
|
-
apply(compiler: Compiler): void;
|
|
8
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const normalize_webpack_path_1 = require("@module-federation/sdk/normalize-webpack-path");
|
|
4
|
-
const PLUGIN_NAME = 'ContainerReferencePlugin';
|
|
5
|
-
class ContainerReferencePlugin {
|
|
6
|
-
constructor(options) {
|
|
7
|
-
this._options = options;
|
|
8
|
-
this.name = PLUGIN_NAME;
|
|
9
|
-
}
|
|
10
|
-
apply(compiler) {
|
|
11
|
-
process.env['FEDERATION_WEBPACK_PATH'] =
|
|
12
|
-
process.env['FEDERATION_WEBPACK_PATH'] || (0, normalize_webpack_path_1.getWebpackPath)(compiler);
|
|
13
|
-
const CoreContainerReferencePlugin = require('../lib/container/ContainerReferencePlugin')
|
|
14
|
-
.default;
|
|
15
|
-
new CoreContainerReferencePlugin(this._options).apply(compiler);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.default = ContainerReferencePlugin;
|
|
19
|
-
//# sourceMappingURL=ContainerReferencePlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContainerReferencePlugin.js","sourceRoot":"","sources":["../../../src/wrapper/ContainerReferencePlugin.ts"],"names":[],"mappings":";;AAEA,0FAA+E;AAE/E,MAAM,WAAW,GAAG,0BAA0B,CAAC;AAE/C,MAAqB,wBAAwB;IAI3C,YACE,OAAiE;QAEjE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,QAAkB;QACtB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACpC,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,IAAA,uCAAc,EAAC,QAAQ,CAAC,CAAC;QACrE,MAAM,4BAA4B,GAChC,OAAO,CAAC,2CAA2C,CAAC;aACjD,OAA6E,CAAC;QACnF,IAAI,4BAA4B,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAClE,CAAC;CACF;AAnBD,2CAmBC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { WebpackPluginInstance, Compiler } from 'webpack';
|
|
2
|
-
import type { moduleFederationPlugin } from '@module-federation/sdk';
|
|
3
|
-
export default class FederationRuntimePlugin implements WebpackPluginInstance {
|
|
4
|
-
private _options?;
|
|
5
|
-
name: string;
|
|
6
|
-
entryFilePath: string;
|
|
7
|
-
constructor(options?: moduleFederationPlugin.ModuleFederationPluginOptions);
|
|
8
|
-
apply(compiler: Compiler): void;
|
|
9
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const normalize_webpack_path_1 = require("@module-federation/sdk/normalize-webpack-path");
|
|
4
|
-
const PLUGIN_NAME = 'FederationRuntimePlugin';
|
|
5
|
-
class FederationRuntimePlugin {
|
|
6
|
-
constructor(options) {
|
|
7
|
-
this._options = options;
|
|
8
|
-
this.name = PLUGIN_NAME;
|
|
9
|
-
this.entryFilePath = '';
|
|
10
|
-
}
|
|
11
|
-
apply(compiler) {
|
|
12
|
-
process.env['FEDERATION_WEBPACK_PATH'] =
|
|
13
|
-
process.env['FEDERATION_WEBPACK_PATH'] || (0, normalize_webpack_path_1.getWebpackPath)(compiler);
|
|
14
|
-
const CoreFederationRuntimePlugin = require('../lib/container/runtime/FederationRuntimePlugin')
|
|
15
|
-
.default;
|
|
16
|
-
const pluginInstance = new CoreFederationRuntimePlugin(this._options);
|
|
17
|
-
pluginInstance.apply(compiler);
|
|
18
|
-
this.entryFilePath = pluginInstance.entryFilePath;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.default = FederationRuntimePlugin;
|
|
22
|
-
//# sourceMappingURL=FederationRuntimePlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FederationRuntimePlugin.js","sourceRoot":"","sources":["../../../src/wrapper/FederationRuntimePlugin.ts"],"names":[],"mappings":";;AAGA,0FAA+E;AAE/E,MAAM,WAAW,GAAG,yBAAyB,CAAC;AAE9C,MAAqB,uBAAuB;IAK1C,YAAY,OAA8D;QACxE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;QACxB,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,QAAkB;QACtB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACpC,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,IAAA,uCAAc,EAAC,QAAQ,CAAC,CAAC;QACrE,MAAM,2BAA2B,GAC/B,OAAO,CAAC,kDAAkD,CAAC;aACxD,OAAoF,CAAC;QAC1F,MAAM,cAAc,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtE,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAE/B,IAAI,CAAC,aAAa,GAAG,cAAc,CAAC,aAAa,CAAC;IACpD,CAAC;CACF;AAtBD,0CAsBC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const normalize_webpack_path_1 = require("@module-federation/sdk/normalize-webpack-path");
|
|
4
|
-
const PLUGIN_NAME = 'HoistContainerReferencesPlugin';
|
|
5
|
-
class HoistContainerReferencesPlugin {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.name = PLUGIN_NAME;
|
|
8
|
-
}
|
|
9
|
-
apply(compiler) {
|
|
10
|
-
process.env['FEDERATION_WEBPACK_PATH'] =
|
|
11
|
-
process.env['FEDERATION_WEBPACK_PATH'] || (0, normalize_webpack_path_1.getWebpackPath)(compiler);
|
|
12
|
-
const CoreHoistContainerReferencesPlugin = require('../lib/container/HoistContainerReferencesPlugin')
|
|
13
|
-
.default;
|
|
14
|
-
new CoreHoistContainerReferencesPlugin().apply(compiler);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.default = HoistContainerReferencesPlugin;
|
|
18
|
-
//# sourceMappingURL=HoistContainerReferencesPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HoistContainerReferencesPlugin.js","sourceRoot":"","sources":["../../../src/wrapper/HoistContainerReferencesPlugin.ts"],"names":[],"mappings":";;AACA,0FAA+E;AAE/E,MAAM,WAAW,GAAG,gCAAgC,CAAC;AAErD,MAAqB,8BAA8B;IAKjD;QACE,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,QAAkB;QACtB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACpC,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,IAAA,uCAAc,EAAC,QAAQ,CAAC,CAAC;QACrE,MAAM,kCAAkC,GACtC,OAAO,CAAC,iDAAiD,CAAC;aACvD,OAAmF,CAAC;QACzF,IAAI,kCAAkC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC3D,CAAC;CACF;AAjBD,iDAiBC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { WebpackPluginInstance, Compiler } from 'webpack';
|
|
2
|
-
import type { moduleFederationPlugin } from '@module-federation/sdk';
|
|
3
|
-
export default class ModuleFederationPlugin implements WebpackPluginInstance {
|
|
4
|
-
private _options;
|
|
5
|
-
name: string;
|
|
6
|
-
constructor(options: moduleFederationPlugin.ModuleFederationPluginOptions);
|
|
7
|
-
apply(compiler: Compiler): void;
|
|
8
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const normalize_webpack_path_1 = require("@module-federation/sdk/normalize-webpack-path");
|
|
4
|
-
const PLUGIN_NAME = 'ModuleFederationPlugin';
|
|
5
|
-
class ModuleFederationPlugin {
|
|
6
|
-
constructor(options) {
|
|
7
|
-
this._options = options;
|
|
8
|
-
this.name = PLUGIN_NAME;
|
|
9
|
-
}
|
|
10
|
-
apply(compiler) {
|
|
11
|
-
if (!compiler.options.plugins.find((p) => p && p.name === PLUGIN_NAME)) {
|
|
12
|
-
compiler.options.plugins.push(this);
|
|
13
|
-
}
|
|
14
|
-
process.env['FEDERATION_WEBPACK_PATH'] =
|
|
15
|
-
process.env['FEDERATION_WEBPACK_PATH'] || (0, normalize_webpack_path_1.getWebpackPath)(compiler);
|
|
16
|
-
const CoreModuleFederationPlugin = require('../lib/container/ModuleFederationPlugin')
|
|
17
|
-
.default;
|
|
18
|
-
new CoreModuleFederationPlugin(this._options).apply(compiler);
|
|
19
|
-
// compiler.hooks.afterPlugins.tap('WrapperModuleFederationPlugin', () => {
|
|
20
|
-
// })
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.default = ModuleFederationPlugin;
|
|
24
|
-
//# sourceMappingURL=ModuleFederationPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ModuleFederationPlugin.js","sourceRoot":"","sources":["../../../src/wrapper/ModuleFederationPlugin.ts"],"names":[],"mappings":";;AAGA,0FAA+E;AAE/E,MAAM,WAAW,GAAG,wBAAwB,CAAC;AAE7C,MAAqB,sBAAsB;IAIzC,YAAY,OAA6D;QACvE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,QAAkB;QACtB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,EAAE,CAAC;YACvE,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACpC,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,IAAA,uCAAc,EAAC,QAAQ,CAAC,CAAC;QACrE,MAAM,0BAA0B,GAC9B,OAAO,CAAC,yCAAyC,CAAC;aAC/C,OAA2E,CAAC;QACjF,IAAI,0BAA0B,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAE9D,2EAA2E;QAC3E,KAAK;IACP,CAAC;CACF;AAvBD,yCAuBC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { WebpackPluginInstance, Compiler } from 'webpack';
|
|
2
|
-
import type { ProvideSharedPluginOptions } from '../declarations/plugins/sharing/ProvideSharedPlugin';
|
|
3
|
-
export default class ProvideSharedPlugin implements WebpackPluginInstance {
|
|
4
|
-
private _options;
|
|
5
|
-
name: string;
|
|
6
|
-
constructor(options: ProvideSharedPluginOptions);
|
|
7
|
-
apply(compiler: Compiler): void;
|
|
8
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const normalize_webpack_path_1 = require("@module-federation/sdk/normalize-webpack-path");
|
|
4
|
-
const PLUGIN_NAME = 'ProvideSharedPlugin';
|
|
5
|
-
class ProvideSharedPlugin {
|
|
6
|
-
constructor(options) {
|
|
7
|
-
this._options = options;
|
|
8
|
-
this.name = PLUGIN_NAME;
|
|
9
|
-
}
|
|
10
|
-
apply(compiler) {
|
|
11
|
-
process.env['FEDERATION_WEBPACK_PATH'] =
|
|
12
|
-
process.env['FEDERATION_WEBPACK_PATH'] || (0, normalize_webpack_path_1.getWebpackPath)(compiler);
|
|
13
|
-
const CoreProvideSharedPlugin = require('../lib/sharing/ProvideSharedPlugin')
|
|
14
|
-
.default;
|
|
15
|
-
new CoreProvideSharedPlugin(this._options).apply(compiler);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.default = ProvideSharedPlugin;
|
|
19
|
-
//# sourceMappingURL=ProvideSharedPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProvideSharedPlugin.js","sourceRoot":"","sources":["../../../src/wrapper/ProvideSharedPlugin.ts"],"names":[],"mappings":";;AAEA,0FAA+E;AAE/E,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAE1C,MAAqB,mBAAmB;IAItC,YAAY,OAAmC;QAC7C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,QAAkB;QACtB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACpC,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,IAAA,uCAAc,EAAC,QAAQ,CAAC,CAAC;QACrE,MAAM,uBAAuB,GAC3B,OAAO,CAAC,oCAAoC,CAAC;aAC1C,OAAsE,CAAC;QAC5E,IAAI,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7D,CAAC;CACF;AAjBD,sCAiBC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { WebpackPluginInstance, Compiler } from 'webpack';
|
|
2
|
-
import type { SharePluginOptions } from '../declarations/plugins/sharing/SharePlugin';
|
|
3
|
-
export default class SharePlugin implements WebpackPluginInstance {
|
|
4
|
-
private _options;
|
|
5
|
-
name: string;
|
|
6
|
-
constructor(options: SharePluginOptions);
|
|
7
|
-
apply(compiler: Compiler): void;
|
|
8
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const normalize_webpack_path_1 = require("@module-federation/sdk/normalize-webpack-path");
|
|
4
|
-
const PLUGIN_NAME = 'SharePlugin';
|
|
5
|
-
class SharePlugin {
|
|
6
|
-
constructor(options) {
|
|
7
|
-
this._options = options;
|
|
8
|
-
this.name = PLUGIN_NAME;
|
|
9
|
-
}
|
|
10
|
-
apply(compiler) {
|
|
11
|
-
process.env['FEDERATION_WEBPACK_PATH'] =
|
|
12
|
-
process.env['FEDERATION_WEBPACK_PATH'] || (0, normalize_webpack_path_1.getWebpackPath)(compiler);
|
|
13
|
-
const CoreSharePlugin = require('../lib/sharing/SharePlugin')
|
|
14
|
-
.default;
|
|
15
|
-
new CoreSharePlugin(this._options).apply(compiler);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.default = SharePlugin;
|
|
19
|
-
//# sourceMappingURL=SharePlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SharePlugin.js","sourceRoot":"","sources":["../../../src/wrapper/SharePlugin.ts"],"names":[],"mappings":";;AAEA,0FAA+E;AAE/E,MAAM,WAAW,GAAG,aAAa,CAAC;AAElC,MAAqB,WAAW;IAI9B,YAAY,OAA2B;QACrC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,QAAkB;QACtB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACpC,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,IAAA,uCAAc,EAAC,QAAQ,CAAC,CAAC;QACrE,MAAM,eAAe,GAAG,OAAO,CAAC,4BAA4B,CAAC;aAC1D,OAA8D,CAAC;QAClE,IAAI,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;CACF;AAhBD,8BAgBC"}
|