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

PR: add .cjs support and fix cjs esm interop #380

Open
frank-dspeed opened this issue Sep 3, 2020 · 0 comments
Open

PR: add .cjs support and fix cjs esm interop #380

frank-dspeed opened this issue Sep 3, 2020 · 0 comments

Comments

@frank-dspeed
Copy link

I will create a PR today that modifes es4x/src/*/Runtime.java to support .cjs input

you could look if you can add support for a little check as you know java more well then me

if we got a .js file we need to look if it contains "import " with a space after it if it does it is .mjs if not it is cjs

also we need a switch for the string eval to choose if we want to run in module or cjs mode

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

1 participant