hyperbrew / bolt-cep

A lightning-fast boilerplate for building Adobe CEP Extensions in React, Vue, or Svelte built on Vite + TypeScript + Sass
MIT License
309 stars 40 forks source link

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

Open mir-bskochko opened 7 months ago

mir-bskochko commented 7 months ago

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?