source: frontend/node_modules/webpack/lib/dependencies/DllEntryDependency.js

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

Fix frontend appearance

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Tobias Koppers @sokra
4*/
5
6"use strict";
7
8const Dependency = require("../Dependency");
9const makeSerializable = require("../util/makeSerializable");
10
11/** @typedef {import("../serialization/ObjectMiddleware").ObjectDeserializerContext} ObjectDeserializerContext */
12/** @typedef {import("../serialization/ObjectMiddleware").ObjectSerializerContext} ObjectSerializerContext */
13/** @typedef {import("./EntryDependency")} EntryDependency */
14
15class DllEntryDependency extends Dependency {
16 /**
17 * Creates an instance of DllEntryDependency.
18 * @param {EntryDependency[]} dependencies dependencies
19 * @param {string} name name
20 */
21 constructor(dependencies, name) {
22 super();
23
24 this.dependencies = dependencies;
25 this.name = name;
26 }
27
28 get type() {
29 return "dll entry";
30 }
31
32 /**
33 * Serializes this instance into the provided serializer context.
34 * @param {ObjectSerializerContext} context context
35 */
36 serialize(context) {
37 const { write } = context;
38
39 write(this.dependencies);
40 write(this.name);
41
42 super.serialize(context);
43 }
44
45 /**
46 * Restores this instance from the provided deserializer context.
47 * @param {ObjectDeserializerContext} context context
48 */
49 deserialize(context) {
50 const { read } = context;
51
52 this.dependencies = read();
53 this.name = read();
54
55 super.deserialize(context);
56 }
57}
58
59makeSerializable(
60 DllEntryDependency,
61 "webpack/lib/dependencies/DllEntryDependency"
62);
63
64module.exports = DllEntryDependency;
Note: See TracBrowser for help on using the repository browser.