You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
463 B

4 years ago
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const FunctionModuleTemplatePlugin = require("./FunctionModuleTemplatePlugin");
  7. class FunctionModulePlugin {
  8. apply(compiler) {
  9. compiler.hooks.compilation.tap("FunctionModulePlugin", compilation => {
  10. new FunctionModuleTemplatePlugin().apply(
  11. compilation.moduleTemplates.javascript
  12. );
  13. });
  14. }
  15. }
  16. module.exports = FunctionModulePlugin;