mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			20 lines
		
	
	
		
			683 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			683 B
		
	
	
	
		
			JavaScript
		
	
	
	
/*
 | 
						|
	MIT License http://www.opensource.org/licenses/mit-license.php
 | 
						|
	Author Tobias Koppers @sokra
 | 
						|
*/
 | 
						|
"use strict";
 | 
						|
 | 
						|
const FetchCompileWasmMainTemplatePlugin = require("./FetchCompileWasmMainTemplatePlugin");
 | 
						|
const FetchCompileWasmModuleTemplatePlugin = require("./FetchCompileWasmModuleTemplatePlugin");
 | 
						|
 | 
						|
class FetchCompileWasmTemplatePlugin {
 | 
						|
	apply(compiler) {
 | 
						|
		compiler.hooks.thisCompilation.tap("FetchCompileWasmTemplatePlugin", (compilation) => {
 | 
						|
			compilation.mainTemplate.apply(new FetchCompileWasmMainTemplatePlugin());
 | 
						|
			compilation.moduleTemplates.javascript.apply(new FetchCompileWasmModuleTemplatePlugin());
 | 
						|
		});
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
module.exports = FetchCompileWasmTemplatePlugin;
 |