DllEntryDependency.js (819B)
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;