-
Notifications
You must be signed in to change notification settings - Fork 41
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
ExtendScript classes transpilation #93
Comments
Pretty sure those helpers are needed in order for it to work, but if you have an example of before (ES6) / after (ES3) of what you're trying to achieve that would be great. |
@igor-elovikov @justintaylor-dev Or we can add the es5 environment by default like adding json2.js, so that there will be no such errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sorry, I have very little experience with js/ts but I've noticed that if I'm trying to use classes in extendscript babel adds bunch of hepers
for example like those:
when babel transpiles classes to functions it injects these helpers
the problem is that extendscript doesn't know anything about
Object.defineProperty
so as soon as I'm trying to use classes in extendscript it just breaks the bundle.I've managed to disable helpers in
vite.es.config.ts
viaThough I'm not sure if it's the right way
The text was updated successfully, but these errors were encountered: