source: imaps-frontend/node_modules/webpack/lib/dependencies/RequireContextDependency.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

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