TypeScript库运行时Polyfill神器:ts-polyfill
ts-polyfill 是一个由core-js驱动的 TypeScript 运行时 polyfill,可以轻松为 TypeScript 库添加需要的 polyfill。
只需安装 npm install ts-polyfill,并修改项目 tsconfig.json 文件以添加所需的类型定义。根据目标和需求,选择所需的 polyfill,以最小化带宽消耗。
                            
                            ts-polyfill:TypeScript库的运行时polyfill,由core-js驱动!
                            预估大小:114个文件
                        
                        
                        
                                
                                .gitignore
                                19B
                            
                                                        
                                
                                ts-polyfill.js
                                159KB
                            
                                                        
                                
                                ts-polyfill.min.js
                                52KB
                            
                                                        
                                
                                rollup.config.js
                                561B
                            
                                                        
                                
                                es2015-reflect.js
                                644B
                            
                                                        
                                
                                es2017-typed-arrays.js
                                513B
                            
                                                        
                                
                                es2015-iterable.js
                                979B
                            
                                                        
                                
                                es2019-string.js
                                238B
                            
                                                        
                                
                                es2015-symbol-wellknown.js
                                830B
                            
                                                        
                                
                                es2018-async-iterable.js
                                122B
                            
                                                        
                                                        
                                                        
                                                        
                                                        
                                                        
                                                        
                                                        
                                                        
                                                        
                            
                            
                                                        
                                        
                                    文件大小:372.31KB
                                
                                
                                
                            
评论区