@module-federation/enhanced
Advanced tools
Comparing version 0.0.0-next-20241224163615 to 0.0.0-next-20241225063631
import type { moduleFederationPlugin } from '@module-federation/sdk'; | ||
export { default as ModuleFederationPlugin, PLUGIN_NAME, } from './wrapper/ModuleFederationPlugin'; | ||
export { default as ModuleFederationPlugin } from './wrapper/ModuleFederationPlugin'; | ||
export { default as ContainerReferencePlugin } from './wrapper/ContainerReferencePlugin'; | ||
@@ -4,0 +4,0 @@ export { default as SharePlugin } from './wrapper/SharePlugin'; |
@@ -6,6 +6,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createModuleFederationConfig = exports.container = exports.parseOptions = exports.dependencies = exports.HoistContainerReferencesPlugin = exports.AsyncBoundaryPlugin = exports.FederationRuntimePlugin = exports.FederationModulesPlugin = exports.ProvideSharedPlugin = exports.ConsumeSharedPlugin = exports.ContainerPlugin = exports.SharePlugin = exports.ContainerReferencePlugin = exports.PLUGIN_NAME = exports.ModuleFederationPlugin = void 0; | ||
exports.createModuleFederationConfig = exports.container = exports.parseOptions = exports.dependencies = exports.HoistContainerReferencesPlugin = exports.AsyncBoundaryPlugin = exports.FederationRuntimePlugin = exports.FederationModulesPlugin = exports.ProvideSharedPlugin = exports.ConsumeSharedPlugin = exports.ContainerPlugin = exports.SharePlugin = exports.ContainerReferencePlugin = exports.ModuleFederationPlugin = void 0; | ||
var ModuleFederationPlugin_1 = require("./wrapper/ModuleFederationPlugin"); | ||
Object.defineProperty(exports, "ModuleFederationPlugin", { enumerable: true, get: function () { return __importDefault(ModuleFederationPlugin_1).default; } }); | ||
Object.defineProperty(exports, "PLUGIN_NAME", { enumerable: true, get: function () { return ModuleFederationPlugin_1.PLUGIN_NAME; } }); | ||
var ContainerReferencePlugin_1 = require("./wrapper/ContainerReferencePlugin"); | ||
@@ -12,0 +11,0 @@ Object.defineProperty(exports, "ContainerReferencePlugin", { enumerable: true, get: function () { return __importDefault(ContainerReferencePlugin_1).default; } }); |
@@ -1,1 +0,1 @@ | ||
export { ModuleFederationPlugin, PLUGIN_NAME, } from '@module-federation/rspack/plugin'; | ||
export { ModuleFederationPlugin } from '@module-federation/rspack/plugin'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PLUGIN_NAME = exports.ModuleFederationPlugin = void 0; | ||
exports.ModuleFederationPlugin = void 0; | ||
var plugin_1 = require("@module-federation/rspack/plugin"); | ||
Object.defineProperty(exports, "ModuleFederationPlugin", { enumerable: true, get: function () { return plugin_1.ModuleFederationPlugin; } }); | ||
Object.defineProperty(exports, "PLUGIN_NAME", { enumerable: true, get: function () { return plugin_1.PLUGIN_NAME; } }); | ||
//# sourceMappingURL=rspack.js.map |
@@ -1,2 +0,2 @@ | ||
import { default as ModuleFederationPlugin, PLUGIN_NAME } from './wrapper/ModuleFederationPlugin'; | ||
export { ModuleFederationPlugin, PLUGIN_NAME }; | ||
import { default as ModuleFederationPlugin } from './wrapper/ModuleFederationPlugin'; | ||
export { ModuleFederationPlugin }; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PLUGIN_NAME = exports.ModuleFederationPlugin = void 0; | ||
const ModuleFederationPlugin_1 = __importStar(require("./wrapper/ModuleFederationPlugin")); | ||
exports.ModuleFederationPlugin = void 0; | ||
const ModuleFederationPlugin_1 = __importDefault(require("./wrapper/ModuleFederationPlugin")); | ||
Object.defineProperty(exports, "ModuleFederationPlugin", { enumerable: true, get: function () { return ModuleFederationPlugin_1.default; } }); | ||
Object.defineProperty(exports, "PLUGIN_NAME", { enumerable: true, get: function () { return ModuleFederationPlugin_1.PLUGIN_NAME; } }); | ||
//# sourceMappingURL=webpack.js.map |
import type { WebpackPluginInstance, Compiler } from 'webpack'; | ||
import type { moduleFederationPlugin } from '@module-federation/sdk'; | ||
import type { ResourceInfo } from '@module-federation/manifest'; | ||
export declare const PLUGIN_NAME = "ModuleFederationPlugin"; | ||
export default class ModuleFederationPlugin implements WebpackPluginInstance { | ||
@@ -6,0 +5,0 @@ private _options; |
@@ -6,3 +6,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PLUGIN_NAME = void 0; | ||
const normalize_webpack_path_1 = require("@module-federation/sdk/normalize-webpack-path"); | ||
@@ -12,10 +11,10 @@ const node_path_1 = __importDefault(require("node:path")); | ||
const bridge_react_webpack_plugin_1 = __importDefault(require("@module-federation/bridge-react-webpack-plugin")); | ||
exports.PLUGIN_NAME = 'ModuleFederationPlugin'; | ||
const PLUGIN_NAME = 'ModuleFederationPlugin'; | ||
class ModuleFederationPlugin { | ||
constructor(options) { | ||
this._options = options; | ||
this.name = exports.PLUGIN_NAME; | ||
this.name = PLUGIN_NAME; | ||
} | ||
apply(compiler) { | ||
if (!compiler.options.plugins.find((p) => p && p['name'] === exports.PLUGIN_NAME)) { | ||
if (!compiler.options.plugins.find((p) => p && p['name'] === PLUGIN_NAME)) { | ||
compiler.options.plugins.push(this); | ||
@@ -22,0 +21,0 @@ } |
{ | ||
"name": "@module-federation/enhanced", | ||
"version": "0.0.0-next-20241224163615", | ||
"version": "0.0.0-next-20241225063631", | ||
"main": "./dist/src/index.js", | ||
@@ -84,3 +84,3 @@ "types": "./dist/src/index.d.ts", | ||
"enhanced-resolve": "^5.0.0", | ||
"@module-federation/webpack-bundler-runtime": "0.0.0-next-20241224163615" | ||
"@module-federation/webpack-bundler-runtime": "0.0.0-next-20241225063631" | ||
}, | ||
@@ -90,11 +90,11 @@ "dependencies": { | ||
"btoa": "^1.2.1", | ||
"@module-federation/sdk": "0.0.0-next-20241224163615", | ||
"@module-federation/runtime-tools": "0.0.0-next-20241224163615", | ||
"@module-federation/manifest": "0.0.0-next-20241224163615", | ||
"@module-federation/managers": "0.0.0-next-20241224163615", | ||
"@module-federation/dts-plugin": "0.0.0-next-20241224163615", | ||
"@module-federation/rspack": "0.0.0-next-20241224163615", | ||
"@module-federation/bridge-react-webpack-plugin": "0.0.0-next-20241224163615", | ||
"@module-federation/data-prefetch": "0.0.0-next-20241224163615" | ||
"@module-federation/sdk": "0.0.0-next-20241225063631", | ||
"@module-federation/runtime-tools": "0.0.0-next-20241225063631", | ||
"@module-federation/manifest": "0.0.0-next-20241225063631", | ||
"@module-federation/managers": "0.0.0-next-20241225063631", | ||
"@module-federation/dts-plugin": "0.0.0-next-20241225063631", | ||
"@module-federation/rspack": "0.0.0-next-20241225063631", | ||
"@module-federation/bridge-react-webpack-plugin": "0.0.0-next-20241225063631", | ||
"@module-federation/data-prefetch": "0.0.0-next-20241225063631" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
750945
11705
+ Added@module-federation/bridge-react-webpack-plugin@0.0.0-next-20241225063631(transitive)
+ Added@module-federation/data-prefetch@0.0.0-next-20241225063631(transitive)
+ Added@module-federation/dts-plugin@0.0.0-next-20241225063631(transitive)
+ Added@module-federation/error-codes@0.0.0-next-20241225063631(transitive)
+ Added@module-federation/managers@0.0.0-next-20241225063631(transitive)
+ Added@module-federation/manifest@0.0.0-next-20241225063631(transitive)
+ Added@module-federation/rspack@0.0.0-next-20241225063631(transitive)
+ Added@module-federation/runtime@0.0.0-next-20241225063631(transitive)
+ Added@module-federation/runtime-tools@0.0.0-next-20241225063631(transitive)
+ Added@module-federation/sdk@0.0.0-next-20241225063631(transitive)
+ Added@module-federation/third-party-dts-extractor@0.0.0-next-20241225063631(transitive)
+ Added@module-federation/webpack-bundler-runtime@0.0.0-next-20241225063631(transitive)
- Removed@module-federation/bridge-react-webpack-plugin@0.0.0-next-20241224163615(transitive)
- Removed@module-federation/data-prefetch@0.0.0-next-20241224163615(transitive)
- Removed@module-federation/dts-plugin@0.0.0-next-20241224163615(transitive)
- Removed@module-federation/error-codes@0.0.0-next-20241224163615(transitive)
- Removed@module-federation/managers@0.0.0-next-20241224163615(transitive)
- Removed@module-federation/manifest@0.0.0-next-20241224163615(transitive)
- Removed@module-federation/rspack@0.0.0-next-20241224163615(transitive)
- Removed@module-federation/runtime@0.0.0-next-20241224163615(transitive)
- Removed@module-federation/runtime-tools@0.0.0-next-20241224163615(transitive)
- Removed@module-federation/sdk@0.0.0-next-20241224163615(transitive)
- Removed@module-federation/third-party-dts-extractor@0.0.0-next-20241224163615(transitive)
- Removed@module-federation/webpack-bundler-runtime@0.0.0-next-20241224163615(transitive)
Updated@module-federation/bridge-react-webpack-plugin@0.0.0-next-20241225063631
Updated@module-federation/data-prefetch@0.0.0-next-20241225063631
Updated@module-federation/dts-plugin@0.0.0-next-20241225063631
Updated@module-federation/managers@0.0.0-next-20241225063631
Updated@module-federation/manifest@0.0.0-next-20241225063631
Updated@module-federation/runtime-tools@0.0.0-next-20241225063631