source: imaps-frontend/node_modules/webpack/lib/DllModuleFactory.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 1018 bytes
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 DllModule = require("./DllModule");
9const ModuleFactory = require("./ModuleFactory");
10
11/** @typedef {import("./ModuleFactory").ModuleFactoryCreateData} ModuleFactoryCreateData */
12/** @typedef {import("./ModuleFactory").ModuleFactoryResult} ModuleFactoryResult */
13/** @typedef {import("./dependencies/DllEntryDependency")} DllEntryDependency */
14
15class DllModuleFactory extends ModuleFactory {
16 constructor() {
17 super();
18 this.hooks = Object.freeze({});
19 }
20
21 /**
22 * @param {ModuleFactoryCreateData} data data object
23 * @param {function((Error | null)=, ModuleFactoryResult=): void} callback callback
24 * @returns {void}
25 */
26 create(data, callback) {
27 const dependency = /** @type {DllEntryDependency} */ (data.dependencies[0]);
28 callback(null, {
29 module: new DllModule(
30 data.context,
31 dependency.dependencies,
32 dependency.name
33 )
34 });
35 }
36}
37
38module.exports = DllModuleFactory;
Note: See TracBrowser for help on using the repository browser.