Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
752 bytes
|
Rev | Line | |
---|
[6a3a178] | 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 ModuleDependency = require("./ModuleDependency");
|
---|
| 10 | const ModuleDependencyTemplateAsId = require("./ModuleDependencyTemplateAsId");
|
---|
| 11 |
|
---|
| 12 | class CommonJsRequireDependency extends ModuleDependency {
|
---|
| 13 | constructor(request, range) {
|
---|
| 14 | super(request);
|
---|
| 15 | this.range = range;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | get type() {
|
---|
| 19 | return "cjs require";
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | get category() {
|
---|
| 23 | return "commonjs";
|
---|
| 24 | }
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | CommonJsRequireDependency.Template = ModuleDependencyTemplateAsId;
|
---|
| 28 |
|
---|
| 29 | makeSerializable(
|
---|
| 30 | CommonJsRequireDependency,
|
---|
| 31 | "webpack/lib/dependencies/CommonJsRequireDependency"
|
---|
| 32 | );
|
---|
| 33 |
|
---|
| 34 | module.exports = CommonJsRequireDependency;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.