Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
819 bytes
|
Rev | Line | |
---|
[6a3a178] | 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 | class DllEntryDependency extends Dependency {
|
---|
| 12 | constructor(dependencies, name) {
|
---|
| 13 | super();
|
---|
| 14 |
|
---|
| 15 | this.dependencies = dependencies;
|
---|
| 16 | this.name = name;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | get type() {
|
---|
| 20 | return "dll entry";
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | serialize(context) {
|
---|
| 24 | const { write } = context;
|
---|
| 25 |
|
---|
| 26 | write(this.dependencies);
|
---|
| 27 | write(this.name);
|
---|
| 28 |
|
---|
| 29 | super.serialize(context);
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | deserialize(context) {
|
---|
| 33 | const { read } = context;
|
---|
| 34 |
|
---|
| 35 | this.dependencies = read();
|
---|
| 36 | this.name = read();
|
---|
| 37 |
|
---|
| 38 | super.deserialize(context);
|
---|
| 39 | }
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 | makeSerializable(
|
---|
| 43 | DllEntryDependency,
|
---|
| 44 | "webpack/lib/dependencies/DllEntryDependency"
|
---|
| 45 | );
|
---|
| 46 |
|
---|
| 47 | module.exports = DllEntryDependency;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.