UNPKG

ca-mfe-page-scoring-ui

Version:

This is a react shell for the SPGI Platform MFE implementation

28 lines (19 loc) 998 B
// Babel configuration adds polyfills for application code(excluding dependencies from node_modules) // There are 2 options to fix dependencies compatibility issues: // 1. Include only required core-js polyfills imports inside this file // For example import 'core-js/stable/promise'; import 'core-js/stable/array/find'; // It potentionally could improve bundle size, but it requires to handpick polyfills // 2. Set @babel/preset-env config options "useBuiltIns" as "entry" and remove all core-js imports except // import 'core-js/stable // Bundle size could be bigger, but all needed polyfills will be included // Read more on topic: https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md // Additional polyfills // Fetch import 'whatwg-fetch'; // SVG external content polyfill import svg4everybody from 'svg4everybody'; svg4everybody({ polyfill: true, // polyfill <use> elements for External Content });