main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
1.3 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 |
|
---|
8 | const Dependency = require("../Dependency");
|
---|
9 | const 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 | class NullDependency extends Dependency {
|
---|
16 | get type() {
|
---|
17 | return "null";
|
---|
18 | }
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * @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
|
---|
22 | */
|
---|
23 | couldAffectReferencingModule() {
|
---|
24 | return false;
|
---|
25 | }
|
---|
26 | }
|
---|
27 |
|
---|
28 | NullDependency.Template = class NullDependencyTemplate extends (
|
---|
29 | DependencyTemplate
|
---|
30 | ) {
|
---|
31 | /**
|
---|
32 | * @param {Dependency} dependency the dependency for which the template should be applied
|
---|
33 | * @param {ReplaceSource} source the current replace source which can be modified
|
---|
34 | * @param {DependencyTemplateContext} templateContext the context object
|
---|
35 | * @returns {void}
|
---|
36 | */
|
---|
37 | apply(dependency, source, templateContext) {}
|
---|
38 | };
|
---|
39 |
|
---|
40 | module.exports = NullDependency;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.