webpack/lib/web/FetchCompileWasmTemplatePlu...

23 lines
515 B
JavaScript
Raw Normal View History

2017-10-30 20:56:57 +08:00
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const FetchCompileWasmMainTemplatePlugin = require("./FetchCompileWasmMainTemplatePlugin");
class FetchCompileWasmTemplatePlugin {
apply(compiler) {
2018-02-25 09:00:20 +08:00
compiler.hooks.thisCompilation.tap(
"FetchCompileWasmTemplatePlugin",
compilation => {
new FetchCompileWasmMainTemplatePlugin().apply(
compilation.mainTemplate
);
}
);
2017-10-30 20:56:57 +08:00
}
}
module.exports = FetchCompileWasmTemplatePlugin;