|
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:
758 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
|---|
| 3 | */
|
|---|
| 4 |
|
|---|
| 5 | "use strict";
|
|---|
| 6 |
|
|---|
| 7 | const RuntimeGlobals = require("../RuntimeGlobals");
|
|---|
| 8 | const RuntimeModule = require("../RuntimeModule");
|
|---|
| 9 |
|
|---|
| 10 | class ExportWebpackRequireRuntimeModule extends RuntimeModule {
|
|---|
| 11 | constructor() {
|
|---|
| 12 | super("export webpack runtime", RuntimeModule.STAGE_ATTACH);
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | /**
|
|---|
| 16 | * Returns true, if the runtime module should get it's own scope.
|
|---|
| 17 | * @returns {boolean} true, if the runtime module should get it's own scope
|
|---|
| 18 | */
|
|---|
| 19 | shouldIsolate() {
|
|---|
| 20 | return false;
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | /**
|
|---|
| 24 | * Generates runtime code for this runtime module.
|
|---|
| 25 | * @returns {string | null} runtime code
|
|---|
| 26 | */
|
|---|
| 27 | generate() {
|
|---|
| 28 | return `export { ${RuntimeGlobals.require} };`;
|
|---|
| 29 | }
|
|---|
| 30 | }
|
|---|
| 31 |
|
|---|
| 32 | module.exports = ExportWebpackRequireRuntimeModule;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.