source: frontend/node_modules/webpack/lib/dependencies/NullDependency.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.4 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
8const Dependency = require("../Dependency");
9const DependencyTemplate = require("../DependencyTemplate");
10
11/** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */
12/** @typedef {import("../Dependency").TRANSITIVE} TRANSITIVE */
13/** @typedef {import("../DependencyTemplate").DependencyTemplateContext} DependencyTemplateContext */
14
15/** @typedef {string[]} RawRuntimeRequirements */
16
17class NullDependency extends Dependency {
18 get type() {
19 return "null";
20 }
21
22 /**
23 * Could affect referencing module.
24 * @returns {boolean | TRANSITIVE} true, when changes to the referenced module could affect the referencing module; TRANSITIVE, when changes to the referenced module could affect referencing modules of the referencing module
25 */
26 couldAffectReferencingModule() {
27 return false;
28 }
29}
30
31NullDependency.Template = class NullDependencyTemplate extends (
32 DependencyTemplate
33) {
34 /**
35 * Applies the plugin by registering its hooks on the compiler.
36 * @param {Dependency} dependency the dependency for which the template should be applied
37 * @param {ReplaceSource} source the current replace source which can be modified
38 * @param {DependencyTemplateContext} templateContext the context object
39 * @returns {void}
40 */
41 apply(dependency, source, templateContext) {}
42};
43
44module.exports = NullDependency;
Note: See TracBrowser for help on using the repository browser.