Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
577 bytes
|
Line | |
---|
1 | /*
|
---|
2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
---|
3 | */
|
---|
4 |
|
---|
5 | "use strict";
|
---|
6 |
|
---|
7 | const RuntimeModule = require("../RuntimeModule");
|
---|
8 |
|
---|
9 | class ExportWebpackRequireRuntimeModule extends RuntimeModule {
|
---|
10 | constructor() {
|
---|
11 | super("export webpack runtime", RuntimeModule.STAGE_ATTACH);
|
---|
12 | }
|
---|
13 |
|
---|
14 | /**
|
---|
15 | * @returns {boolean} true, if the runtime module should get it's own scope
|
---|
16 | */
|
---|
17 | shouldIsolate() {
|
---|
18 | return false;
|
---|
19 | }
|
---|
20 |
|
---|
21 | /**
|
---|
22 | * @returns {string} runtime code
|
---|
23 | */
|
---|
24 | generate() {
|
---|
25 | return "export default __webpack_require__;";
|
---|
26 | }
|
---|
27 | }
|
---|
28 |
|
---|
29 | module.exports = ExportWebpackRequireRuntimeModule;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.