Last change
on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.1 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("../ChunkGraph")} ChunkGraph */
|
---|
13 | /** @typedef {import("../Dependency").UpdateHashContext} UpdateHashContext */
|
---|
14 | /** @typedef {import("../DependencyTemplate").DependencyTemplateContext} DependencyTemplateContext */
|
---|
15 | /** @typedef {import("../ModuleGraph")} ModuleGraph */
|
---|
16 | /** @typedef {import("../util/Hash")} Hash */
|
---|
17 |
|
---|
18 | class NullDependency extends Dependency {
|
---|
19 | get type() {
|
---|
20 | return "null";
|
---|
21 | }
|
---|
22 | }
|
---|
23 |
|
---|
24 | NullDependency.Template = class NullDependencyTemplate extends (
|
---|
25 | DependencyTemplate
|
---|
26 | ) {
|
---|
27 | /**
|
---|
28 | * @param {Dependency} dependency the dependency for which the template should be applied
|
---|
29 | * @param {ReplaceSource} source the current replace source which can be modified
|
---|
30 | * @param {DependencyTemplateContext} templateContext the context object
|
---|
31 | * @returns {void}
|
---|
32 | */
|
---|
33 | apply(dependency, source, templateContext) {}
|
---|
34 | };
|
---|
35 |
|
---|
36 | module.exports = NullDependency;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.