How to use the umi-plugin-polyfill.default function in umi-plugin-polyfill

To help you get started, we’ve selected a few umi-plugin-polyfill examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github umijs / umi / packages / umi-preset-react / src / plugins / polyfills.js View on Github external
export default function(api, options) {
  if (options.includes('ie9')) {
    require('umi-plugin-polyfill').default(api);
  }
}

umi-plugin-polyfill

umijs 的兼容插件,目前主要是兼容到 ie9。内置了 react 在 ie 下所需要的 polyfill 和 [setprototypeof](https://github.com/umijs/umi/issues/413)。

MIT
Latest version published 6 years ago

Package Health Score

66 / 100
Full package analysis

Popular umi-plugin-polyfill functions

Similar packages