babel-preset-extendscript
babel-preset-extendscript copied to clipboard
Babel preset for transpiling ES2015 and modern JS conventions to ES3.
Nested `forEach` don't seem to get transformed. Input ```js tracks.forEach((track) => { track?.clips.forEach((clip) => clip.setSelected(1, 1)) }) ``` Output ```js _forEach(tracks, function(track) { track == null ? void 0 :...
Currently Array.prototype.reduce transformation only takes into account one parameter `callback`. This way sentence `array.reduce(callback, initialValue)` is transformed to `_reduce(array, callback)` instead of `_reduce(array, callback, initialValue)`
Running a transpiled ES2015 script in Photoshop errors out on non-transformed `Object.entries` calls.
When I split code for Illustrator into several files and export something in one file like `export default myVar` and then import the file in index.jsx.ts, an error happens: ```...
Hey hey, Thanks for making this preset, it's a really neat idea. I'm running into an issue with one of the transformations, though, and I'm not sure exactly what to...
this preset is not compatible with babel 7 anymore. It produces the following error msg: ``` Error: Plugin/Preset files are not allowed to export objects, only functions. In /Users/florian/Github Repositories/cm-indesign-scripts/node_modules/babel-preset-extendscript/src/index.js...
I ran into this funny "gotcha" that is very subtle and could easily catch people off guard. I'm working on a PS script that makes many changes to the document...
It would be nice to include the presets/fills necessary to bring this up to an equivalent to `babel-preset-env` in terms of coverage, so that this can be used with, for...
It seems this babel preset chokes on some Extendscript markup for UI elements: ``` SyntaxError: /Users/XXXX/lib/main-panel.jsx: Unterminated string constant. (1:24) > 1 | var events_resource = """Group { orientation: 'column',...