mirror of https://github.com/webpack/webpack.git
				
				
				
			
		
			
				
	
	
		
			29 lines
		
	
	
		
			481 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			481 B
		
	
	
	
		
			JavaScript
		
	
	
	
| "use strict";
 | |
| 
 | |
| const path = require("path");
 | |
| 
 | |
| module.exports = {
 | |
| 	module: {
 | |
| 		rules: [
 | |
| 			{
 | |
| 				test: /\.js$/,
 | |
| 				include: [path.resolve(__dirname, ".")],
 | |
| 				use: {
 | |
| 					loader: "babel-loader",
 | |
| 					options: {
 | |
| 						presets: ["@babel/react"]
 | |
| 					}
 | |
| 				}
 | |
| 			}
 | |
| 		]
 | |
| 	},
 | |
| 	optimization: {
 | |
| 		// get readable names in production too
 | |
| 		chunkIds: "named",
 | |
| 		moduleIds: "named",
 | |
| 		// enable some optimizations in dev mode too for showcasing
 | |
| 		sideEffects: true,
 | |
| 		usedExports: true
 | |
| 	}
 | |
| };
 |