UNPKG

628 BJavaScriptView Raw
1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Tobias Koppers @sokra
4*/
5
6"use strict";
7
8const ModuleFactory = require("./ModuleFactory");
9
10/** @typedef {import("./ModuleFactory").ModuleFactoryCreateData} ModuleFactoryCreateData */
11/** @typedef {import("./ModuleFactory").ModuleFactoryResult} ModuleFactoryResult */
12
13class NullFactory extends ModuleFactory {
14 /**
15 * @param {ModuleFactoryCreateData} data data object
16 * @param {function(Error=, ModuleFactoryResult=): void} callback callback
17 * @returns {void}
18 */
19 create(data, callback) {
20 return callback();
21 }
22}
23module.exports = NullFactory;