2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Tobias Koppers @sokra, Zackary Jackson @ScriptedAlchemy, Marais Rossouw @maraisr
8 const Dependency = require("../Dependency");
9 const makeSerializable = require("../util/makeSerializable");
11 /** @typedef {import("./ContainerEntryModule").ExposeOptions} ExposeOptions */
13 class ContainerEntryDependency extends Dependency {
15 * @param {string} name entry name
16 * @param {[string, ExposeOptions][]} exposes list of exposed modules
17 * @param {string} shareScope name of the share scope
19 constructor(name, exposes, shareScope) {
22 this.exposes = exposes;
23 this.shareScope = shareScope;
27 * @returns {string | null} an identifier to merge equal requests
29 getResourceIdentifier() {
30 return `container-entry-${this.name}`;
34 return "container entry";
43 ContainerEntryDependency,
44 "webpack/lib/container/ContainerEntryDependency"
47 module.exports = ContainerEntryDependency;