source: frontend/node_modules/webpack/lib/container/ContainerEntryDependency.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Tobias Koppers @sokra, Zackary Jackson @ScriptedAlchemy, Marais Rossouw @maraisr
4*/
5
6"use strict";
7
8const Dependency = require("../Dependency");
9const makeSerializable = require("../util/makeSerializable");
10
11/** @typedef {import("./ContainerEntryModule").ExposesList} ExposesList */
12
13class ContainerEntryDependency extends Dependency {
14 /**
15 * Creates an instance of ContainerEntryDependency.
16 * @param {string} name entry name
17 * @param {ExposesList} exposes list of exposed modules
18 * @param {string} shareScope name of the share scope
19 */
20 constructor(name, exposes, shareScope) {
21 super();
22 /** @type {string} */
23 this.name = name;
24 /** @type {ExposesList} */
25 this.exposes = exposes;
26 /** @type {string} */
27 this.shareScope = shareScope;
28 }
29
30 /**
31 * Returns an identifier to merge equal requests.
32 * @returns {string | null} an identifier to merge equal requests
33 */
34 getResourceIdentifier() {
35 return `container-entry-${this.name}`;
36 }
37
38 get type() {
39 return "container entry";
40 }
41
42 get category() {
43 return "esm";
44 }
45}
46
47makeSerializable(
48 ContainerEntryDependency,
49 "webpack/lib/container/ContainerEntryDependency"
50);
51
52module.exports = ContainerEntryDependency;
Note: See TracBrowser for help on using the repository browser.