Comments (6)
Yes, I'm successfully using the babel-preset-extendscript, but only with simple tests. Haven't used it in production yet. The core-js-pure library successfully transforms and ponyfills (no global scope pollution), but found esbuild uses nested ternaries which throw an error in Extendscript.
from bolt-cep.
I've been using babel-preset-extendscript in my setup, but it only supports most ES2015 features. core-js-pure has a ponyfill feature, but I haven't been able to have the bundler produce valid Extendscript (likely because of nested ternaries).
from bolt-cep.
Hey @Klustre, I did look into modern array functions to ES3 a while back but didn't find any reliable way to polyfill these on transpilation. Are you saying one those libs did support modern array functions to ES3?
from bolt-cep.
I have been just using some polyfill code and it works just fine, what you speak of is probably more advanced and proper.
from bolt-cep.
@Klustre Appreciate the suggestion! I've done some testing with these methods and I don't think I'll include these in the boilerplate for the time being. I have a util library for most common array methods in the utils.ts file.
If you want to add to your own clone, you can by installing and adding babel-preset-extendscript to babel presets array in vite.es.config.ts
, but you'll need to adjust the tsconfig to not show errors with modern array methods.
from bolt-cep.
@Klustre revisited this and added a simple implementation for Ponyfills in Rollup.
Built-in Ponyfills have been implemented in 0.4.0 and you can add your own custom ones (see the Readme for details).
from bolt-cep.
Related Issues (20)
- Update .yml with Extension ID on Creation
- window.cep is always undefined in react template HOT 1
- Audition support HOT 5
- Add Support for Audition, Media Encoder, InDesign, and Bridge
- The <extension name> extension could not be loaded because it was not properly signed. HOT 1
- Cant't acess .jsx files
- removeEventListener obj parameter not set as optional
- How to get this working in NextJS? HOT 1
- zxp password included as raw text in build bundle HOT 2
- API requests HOT 1
- Package.json should inherit extension name
- Cannot build with 2 panels in cep.config.ts HOT 5
- Types for Adobe stop at v22.0 HOT 1
- "TypeError: undefined is not an object" when calling evalEs HOT 3
- [Question] Using HMR within Adobe apps? HOT 1
- Catching exceptions in evalTS HOT 1
- How to properly read assets copied by CEP_Config.copyAssets option? HOT 1
- Static Assets Handling HOT 1
- Compiling zxp failed HOT 3
- Support pkg and exe export HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bolt-cep.