mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-10-30 23:37:28 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			506 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			506 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const wp = require('@cypress/webpack-preprocessor');
 | |
| 
 | |
| const webpackOptions = {
 | |
|   resolve: {
 | |
|     extensions: ['.ts', '.js'],
 | |
|   },
 | |
|   performance: false,
 | |
|   module: {
 | |
|     rules: [
 | |
|       {
 | |
|         test: /\.ts$/,
 | |
|         exclude: [/node_modules/],
 | |
|         use: [
 | |
|           {
 | |
|             loader: 'ts-loader',
 | |
|             options: {
 | |
|               configFile: 'e2e/tsconfig.json',
 | |
|             },
 | |
|           },
 | |
|         ],
 | |
|       },
 | |
|     ],
 | |
|   },
 | |
| };
 | |
| 
 | |
| const options = {
 | |
|   webpackOptions,
 | |
| };
 | |
| 
 | |
| module.exports = wp(options);
 |