File tree 2 files changed +12
-12
lines changed
plugins/NextFederationPlugin
2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -111,10 +111,10 @@ const nextNavigationShares = createSharedConfig(
111
111
* @property {string|string[] } key.issuerLayer - The webpack layer that can import this shared module.
112
112
*/
113
113
export const DEFAULT_SHARE_SCOPE : moduleFederationPlugin . SharedObject = {
114
- ...reactShares ,
115
- ...reactDomShares ,
116
- ...nextNavigationShares ,
117
- ...jsxRuntimeShares ,
114
+ // ...reactShares,
115
+ // ...reactDomShares,
116
+ // ...nextNavigationShares,
117
+ // ...jsxRuntimeShares,
118
118
'next/dynamic' : {
119
119
requiredVersion : undefined ,
120
120
singleton : true ,
Original file line number Diff line number Diff line change @@ -108,14 +108,14 @@ export class NextFederationPlugin {
108
108
p ?. constructor ?. name === 'BuildManifestPlugin' ,
109
109
) ;
110
110
111
- // if (manifestPlugin) {
112
- // //@ts -ignore
113
- // if (manifestPlugin?.appDirEnabled) {
114
- // throw new Error(
115
- // 'App Directory is not supported by nextjs-mf. Use only pages directory, do not open git issues about this',
116
- // );
117
- // }
118
- // }
111
+ if ( manifestPlugin ) {
112
+ //@ts -ignore
113
+ if ( manifestPlugin ?. appDirEnabled ) {
114
+ throw new Error (
115
+ 'App Directory is not supported by nextjs-mf. Use only pages directory, do not open git issues about this' ,
116
+ ) ;
117
+ }
118
+ }
119
119
120
120
const compilerValid = validateCompilerOptions ( compiler ) ;
121
121
const pluginValid = validatePluginOptions ( this . _options ) ;
You can’t perform that action at this time.
0 commit comments