main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 5 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
643 bytes
|
Rev | Line | |
---|
[79a0317] | 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 {boolean} true, if the runtime module should get it's own scope
|
---|
| 17 | */
|
---|
| 18 | shouldIsolate() {
|
---|
| 19 | return false;
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | /**
|
---|
| 23 | * @returns {string | null} runtime code
|
---|
| 24 | */
|
---|
| 25 | generate() {
|
---|
| 26 | return `export default ${RuntimeGlobals.require};`;
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | module.exports = ExportWebpackRequireRuntimeModule;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.