mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-10-31 07:57:39 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			580 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			580 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import * as path from 'path';
 | |
| 
 | |
| export default (env: { production?: boolean } = {}) => ({
 | |
|   mode: env.production ? 'production' : 'development',
 | |
|   entry: {
 | |
|     app: ['./src/index'],
 | |
|   },
 | |
|   output: {
 | |
|     library: 'map2tree',
 | |
|     libraryTarget: 'umd',
 | |
|     path: path.resolve(__dirname, 'dist'),
 | |
|     filename: env.production ? 'map2tree.min.js' : 'map2tree.js',
 | |
|   },
 | |
|   module: {
 | |
|     rules: [
 | |
|       {
 | |
|         test: /\.(js|ts)$/,
 | |
|         loader: 'babel-loader',
 | |
|         exclude: /node_modules/,
 | |
|       },
 | |
|     ],
 | |
|   },
 | |
|   resolve: {
 | |
|     extensions: ['.js', '.jsx', '.ts', '.tsx'],
 | |
|   },
 | |
| });
 |