mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
	
	
		
			26 lines
		
	
	
		
			517 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
		
			
		
	
	
			26 lines
		
	
	
		
			517 B
		
	
	
	
		
			JavaScript
		
	
	
	
|  | /* | ||
|  | 	MIT License http://www.opensource.org/licenses/mit-license.php
 | ||
|  | 	Author Tobias Koppers @sokra | ||
|  | */ | ||
|  | "use strict"; | ||
|  | 
 | ||
|  | // Syntax: https://developer.mozilla.org/en/SpiderMonkey/Parser_API
 | ||
|  | 
 | ||
|  | const Tapable = require("tapable"); | ||
|  | 
 | ||
|  | class WebAssemblyParser extends Tapable { | ||
|  | 	constructor(options) { | ||
|  | 		super(); | ||
|  | 		this.options = options; | ||
|  | 	} | ||
|  | 
 | ||
|  | 	parse(source, initialState) { | ||
|  | 		// Does nothing current
 | ||
|  | 		// TODO parse WASM AST and walk it
 | ||
|  | 		// extract exports, imports
 | ||
|  | 		return initialState; | ||
|  | 	} | ||
|  | } | ||
|  | 
 | ||
|  | module.exports = WebAssemblyParser; |