Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add pollyfils from es5 to ppro or etc #121

Open
mir-bskochko opened this issue Mar 28, 2024 · 0 comments
Open

How to add pollyfils from es5 to ppro or etc #121

mir-bskochko opened this issue Mar 28, 2024 · 0 comments

Comments

@mir-bskochko
Copy link

In config, we can set up

jsxPonyfill([
  {
    find: "Array.isArray",
    replace: "__isArray",
    inject: `function __isArray(arr) { try { return arr instanceof Array; } catch (e) { return false; } };`,
  },
])

But If I want to import a group of pollyfills for example from https://polyfill.io/, etc. Can we better implement it? Maybe create a special file and import or how?

@mir-bskochko mir-bskochko changed the title How to add pollyfils from es5 to ppro How to add pollyfils from es5 to ppro or etc Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant