main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
1.3 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 |
|
---|
8 | const Dependency = require("../Dependency");
|
---|
9 | const 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 |
|
---|
15 | class DllEntryDependency extends Dependency {
|
---|
16 | /**
|
---|
17 | * @param {EntryDependency[]} dependencies dependencies
|
---|
18 | * @param {string} name name
|
---|
19 | */
|
---|
20 | constructor(dependencies, name) {
|
---|
21 | super();
|
---|
22 |
|
---|
23 | this.dependencies = dependencies;
|
---|
24 | this.name = name;
|
---|
25 | }
|
---|
26 |
|
---|
27 | get type() {
|
---|
28 | return "dll entry";
|
---|
29 | }
|
---|
30 |
|
---|
31 | /**
|
---|
32 | * @param {ObjectSerializerContext} context context
|
---|
33 | */
|
---|
34 | serialize(context) {
|
---|
35 | const { write } = context;
|
---|
36 |
|
---|
37 | write(this.dependencies);
|
---|
38 | write(this.name);
|
---|
39 |
|
---|
40 | super.serialize(context);
|
---|
41 | }
|
---|
42 |
|
---|
43 | /**
|
---|
44 | * @param {ObjectDeserializerContext} context context
|
---|
45 | */
|
---|
46 | deserialize(context) {
|
---|
47 | const { read } = context;
|
---|
48 |
|
---|
49 | this.dependencies = read();
|
---|
50 | this.name = read();
|
---|
51 |
|
---|
52 | super.deserialize(context);
|
---|
53 | }
|
---|
54 | }
|
---|
55 |
|
---|
56 | makeSerializable(
|
---|
57 | DllEntryDependency,
|
---|
58 | "webpack/lib/dependencies/DllEntryDependency"
|
---|
59 | );
|
---|
60 |
|
---|
61 | module.exports = DllEntryDependency;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.