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

Targets don't align with SWC documentation #660

Open
maschwenk opened this issue Jun 9, 2022 · 0 comments
Open

Targets don't align with SWC documentation #660

maschwenk opened this issue Jun 9, 2022 · 0 comments

Comments

@maschwenk
Copy link
Contributor

I'm trying to pass

transformSync(code, filename, {
    target: 'node'
})

to @swc-node/core 1.8.2 and it seems to reject the target

    unknown variant `node`, expected one of `es3`, `es5`, `es2015`, `es2016`, `es2017`, `es2018`, `es2019`, `es2020`, `es2021`, `es2022` at line 1 column 439

which is weird because https://swc.rs/docs/configuration/supported-browsers#targets seems to make it clear that node is an option. I've contributed to this repo before so happy to help, but curious if you know what's going on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant