|
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.0 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 makeSerializable = require("../util/makeSerializable");
|
|---|
| 9 | const ContextDependency = require("./ContextDependency");
|
|---|
| 10 | const ModuleDependencyTemplateAsRequireId = require("./ModuleDependencyTemplateAsRequireId");
|
|---|
| 11 |
|
|---|
| 12 | /** @typedef {import("../javascript/JavascriptParser").Range} Range */
|
|---|
| 13 | /** @typedef {import("./ContextDependency").ContextDependencyOptions} ContextDependencyOptions */
|
|---|
| 14 |
|
|---|
| 15 | class RequireContextDependency extends ContextDependency {
|
|---|
| 16 | /**
|
|---|
| 17 | * Creates an instance of RequireContextDependency.
|
|---|
| 18 | * @param {ContextDependencyOptions} options options
|
|---|
| 19 | * @param {Range} range range
|
|---|
| 20 | */
|
|---|
| 21 | constructor(options, range) {
|
|---|
| 22 | super(options);
|
|---|
| 23 |
|
|---|
| 24 | this.range = range;
|
|---|
| 25 | }
|
|---|
| 26 |
|
|---|
| 27 | get type() {
|
|---|
| 28 | return "require.context";
|
|---|
| 29 | }
|
|---|
| 30 | }
|
|---|
| 31 |
|
|---|
| 32 | makeSerializable(
|
|---|
| 33 | RequireContextDependency,
|
|---|
| 34 | "webpack/lib/dependencies/RequireContextDependency"
|
|---|
| 35 | );
|
|---|
| 36 |
|
|---|
| 37 | RequireContextDependency.Template = ModuleDependencyTemplateAsRequireId;
|
|---|
| 38 |
|
|---|
| 39 | module.exports = RequireContextDependency;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.