ExportWebpackRequireRuntimeModule.js 577 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. */
  4. "use strict";
  5. const RuntimeModule = require("../RuntimeModule");
  6. class ExportWebpackRequireRuntimeModule extends RuntimeModule {
  7. constructor() {
  8. super("export webpack runtime", RuntimeModule.STAGE_ATTACH);
  9. }
  10. /**
  11. * @returns {boolean} true, if the runtime module should get it's own scope
  12. */
  13. shouldIsolate() {
  14. return false;
  15. }
  16. /**
  17. * @returns {string} runtime code
  18. */
  19. generate() {
  20. return "export default __webpack_require__;";
  21. }
  22. }
  23. module.exports = ExportWebpackRequireRuntimeModule;