HelperRuntimeModule.js 544 B

1234567891011121314151617181920212223
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. */
  4. "use strict";
  5. const RuntimeModule = require("../RuntimeModule");
  6. /**
  7. * Base class for runtime modules that only emit helper functions and do not
  8. * need special staging or attachment behavior beyond `RuntimeModule`.
  9. */
  10. class HelperRuntimeModule extends RuntimeModule {
  11. /**
  12. * Creates a helper runtime module with the provided readable name.
  13. * @param {string} name a readable name
  14. */
  15. constructor(name) {
  16. super(name);
  17. }
  18. }
  19. module.exports = HelperRuntimeModule;