mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
	
	
		
			25 lines
		
	
	
		
			357 B
		
	
	
	
		
			JavaScript
		
	
	
	
		
		
			
		
	
	
			25 lines
		
	
	
		
			357 B
		
	
	
	
		
			JavaScript
		
	
	
	
|  | const toml = require("toml"); | ||
|  | 
 | ||
|  | /** @type {import("../../../../").Configuration[]} */ | ||
|  | module.exports = [ | ||
|  | 	{ | ||
|  | 		mode: "development", | ||
|  | 		module: { | ||
|  | 			parser: { | ||
|  | 				json: { | ||
|  | 					parse(input) { | ||
|  | 						expect(arguments.length).toBe(1); | ||
|  | 						return toml.parse(input); | ||
|  | 					} | ||
|  | 				} | ||
|  | 			}, | ||
|  | 			rules: [ | ||
|  | 				{ | ||
|  | 					test: /\.toml$/, | ||
|  | 					type: "json" | ||
|  | 				} | ||
|  | 			] | ||
|  | 		} | ||
|  | 	} | ||
|  | ]; |