mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-11-04 01:37:32 +03:00 
			
		
		
		
	Add polyfills for IE11
This commit is contained in:
		
							parent
							
								
									6d7fd547b1
								
							
						
					
					
						commit
						141b9f6551
					
				| 
						 | 
					@ -0,0 +1,9 @@
 | 
				
			||||||
 | 
					import 'core-js/es6/promise';
 | 
				
			||||||
 | 
					import 'core-js/fn/object/assign';
 | 
				
			||||||
 | 
					import 'core-js/fn/string/starts-with';
 | 
				
			||||||
 | 
					import 'core-js/fn/string/ends-with';
 | 
				
			||||||
 | 
					import 'core-js/fn/array/find';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import 'core-js/es6/map';
 | 
				
			||||||
 | 
					import 'core-js/es6/set';
 | 
				
			||||||
 | 
					import 'core-js/es6/symbol';
 | 
				
			||||||
| 
						 | 
					@ -19,6 +19,7 @@ export default env => {
 | 
				
			||||||
      ? ['./perf/index.tsx'] // perf test
 | 
					      ? ['./perf/index.tsx'] // perf test
 | 
				
			||||||
      : [
 | 
					      : [
 | 
				
			||||||
          // playground
 | 
					          // playground
 | 
				
			||||||
 | 
					          './src/polyfills.ts',
 | 
				
			||||||
          'react-dev-utils/webpackHotDevClient',
 | 
					          'react-dev-utils/webpackHotDevClient',
 | 
				
			||||||
          'react-hot-loader/patch',
 | 
					          'react-hot-loader/patch',
 | 
				
			||||||
          './demo/playground/hmr-playground.tsx',
 | 
					          './demo/playground/hmr-playground.tsx',
 | 
				
			||||||
| 
						 | 
					@ -34,6 +35,7 @@ export default env => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    devServer: {
 | 
					    devServer: {
 | 
				
			||||||
      contentBase: __dirname + '/demo',
 | 
					      contentBase: __dirname + '/demo',
 | 
				
			||||||
 | 
					      host: '0.0.0.0',
 | 
				
			||||||
      watchContentBase: true,
 | 
					      watchContentBase: true,
 | 
				
			||||||
      port: 9090,
 | 
					      port: 9090,
 | 
				
			||||||
      stats: 'errors-only',
 | 
					      stats: 'errors-only',
 | 
				
			||||||
| 
						 | 
					@ -51,7 +53,7 @@ export default env => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    externals: {
 | 
					    externals: {
 | 
				
			||||||
      esprima: 'esprima',
 | 
					      esprima: 'esprima',
 | 
				
			||||||
      'node-fetch': 'fetch',
 | 
					      'node-fetch': 'null',
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    module: {
 | 
					    module: {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user