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

Enable ESNext syntax for generators #801

Open
Natejoestev opened this issue Dec 20, 2023 · 2 comments
Open

Enable ESNext syntax for generators #801

Natejoestev opened this issue Dec 20, 2023 · 2 comments

Comments

@Natejoestev
Copy link

feature

it would be nice to use ESNext syntax in my generator.

I just moved one of my generators to typescript and i'm using import & export.
when i use tsc, it can convert to CommonJS, but when i run it, it doesn't like it.

i don't want to have to use require() and exports.

@PyaePhyo8612
Copy link

PyaePhyo8612 commented Dec 20, 2023 via email

@yenoh2
Copy link

yenoh2 commented Jul 1, 2024

I refactored a generator to use import & export. It took a lot of debugging to figure out but I ultimately prevailed. https://github.com/yenoh2/generator-hac-tf-module

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

3 participants