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
 | 
			
		||||
      : [
 | 
			
		||||
          // playground
 | 
			
		||||
          './src/polyfills.ts',
 | 
			
		||||
          'react-dev-utils/webpackHotDevClient',
 | 
			
		||||
          'react-hot-loader/patch',
 | 
			
		||||
          './demo/playground/hmr-playground.tsx',
 | 
			
		||||
| 
						 | 
				
			
			@ -34,6 +35,7 @@ export default env => {
 | 
			
		|||
 | 
			
		||||
    devServer: {
 | 
			
		||||
      contentBase: __dirname + '/demo',
 | 
			
		||||
      host: '0.0.0.0',
 | 
			
		||||
      watchContentBase: true,
 | 
			
		||||
      port: 9090,
 | 
			
		||||
      stats: 'errors-only',
 | 
			
		||||
| 
						 | 
				
			
			@ -51,7 +53,7 @@ export default env => {
 | 
			
		|||
 | 
			
		||||
    externals: {
 | 
			
		||||
      esprima: 'esprima',
 | 
			
		||||
      'node-fetch': 'fetch',
 | 
			
		||||
      'node-fetch': 'null',
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    module: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user