2017-05-03 15:35:00 +02:00
|
|
|
/*
|
|
|
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
|
|
Author Tobias Koppers @sokra
|
|
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
const ContextDependency = require("./ContextDependency");
|
|
|
|
const ModuleDependencyTemplateAsRequireId = require("./ModuleDependencyTemplateAsRequireId");
|
|
|
|
|
|
|
|
class RequireContextDependency extends ContextDependency {
|
2017-08-14 05:01:11 +02:00
|
|
|
constructor(request, recursive, regExp, asyncMode, range) {
|
2017-05-03 15:35:00 +02:00
|
|
|
super(request, recursive, regExp);
|
|
|
|
this.range = range;
|
2017-08-14 05:01:11 +02:00
|
|
|
|
|
|
|
if(asyncMode) {
|
|
|
|
this.async = asyncMode;
|
|
|
|
}
|
2017-05-03 15:35:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
get type() {
|
|
|
|
return "require.context";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RequireContextDependency.Template = ModuleDependencyTemplateAsRequireId;
|
|
|
|
|
|
|
|
module.exports = RequireContextDependency;
|