mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			34 lines
		
	
	
		
			441 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			441 B
		
	
	
	
		
			JavaScript
		
	
	
	
| "use strict";
 | |
| 
 | |
| const json5 = require("json5");
 | |
| const toml = require("toml");
 | |
| const yaml = require("yamljs");
 | |
| 
 | |
| module.exports = {
 | |
| 	module: {
 | |
| 		rules: [
 | |
| 			{
 | |
| 				test: /\.toml$/,
 | |
| 				type: "json",
 | |
| 				parser: {
 | |
| 					parse: toml.parse
 | |
| 				}
 | |
| 			},
 | |
| 			{
 | |
| 				test: /\.json5$/,
 | |
| 				type: "json",
 | |
| 				parser: {
 | |
| 					parse: json5.parse
 | |
| 				}
 | |
| 			},
 | |
| 			{
 | |
| 				test: /\.yaml$/,
 | |
| 				type: "json",
 | |
| 				parser: {
 | |
| 					parse: yaml.parse
 | |
| 				}
 | |
| 			}
 | |
| 		]
 | |
| 	}
 | |
| };
 |