-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Implement swcx compile
to feature parity to @swc/cli
#4017
Comments
compile
to feature parity to @swc/cli
just found |
I'm looking to contribute to this project, but it seems all the flags here have already been implemented according to the docs. |
It is not, please see above list with checkboxes. |
Oh, I'm sorry, I got confused with the JS cli tool. I will open a PR hopefully soon to add one of these. |
were resolved in #6708 |
I'm working on the implementation of the |
Another TODO item: document the CLI options on the docsite somewhere. Right now tools like Bazel have to recommend that users run |
+1 on the documentation. I see the ❯ ~/Downloads/swc-darwin-arm64 compile --config=jsc.transform.react.importSource=@emotion/core
error: Invalid value "jsc.transform" for '--config <CONFIG>': expected value at line 1 column 1 @realtimetodie Would you be able to explain the changes here? I see this just came out in 1.3.34 so no worries, I know it's fairly new. |
We document that in a user example now too: aspect-build/rules_swc@8db4ee5 |
Thanks @alexeagle and @realtimetodie . So it looks like the |
FWIW I suspect that's not intentional. @titanous when you added the |
Should we revert it for now? Maybe it should be another name... |
Ah, I didn't know that it was already implemented in |
I think so, we should rename it |
Renamed in #6932. |
Hello, is adding the --copy-files flag planned aswell ? |
were resolved in #6973 |
I work on an Apple M1 machine. arch: arm64. As described here (https://swc.rs/docs/getting-started) I installed @swc/cli and @swc/core. Then when I call npx swc --help it shows the help, Error: No binary found matching your system. It's probably not supported. swcx is available at node_modules/.bin/. The swc.darwin-arm64.node file is located in the node_modules/@swc/core-darwin-arm64/ directory. I tentatively made swc.darwin-arm64.node executable with chmod 755. But I can't run it stand alone. This error message appears: |
Should I open a new issue? |
There is a difference in output directory structure when using swcx cli vs classic swc.
The src folder is kept in new version of the cli. Is that a expected behavior ? Thanks ! |
Was trying this out but two issues (already mentioned) are blockers for using the new version:
|
The workaround for this, is to use the |
* Update @openverse/eslint-plugin * Fix postinstall script * Update swc build for https://github.com/swc-project/swc/issues/4017\#issuecomment-1506730719 --------- Co-authored-by: sarayourfriend <24264157+sarayourfriend@users.noreply.github.com>
Is there a way to specify this in the config file? |
I can +1 the arm mac issue. This is on |
Describe the feature
Related with #3859.
We want to establish initial feature parity to existing @swc/cli to plan out migration with possible breaking changes.
These are initial flags we'd like to have.
config
config_file
filename
(feat(swc/cli_compile): support out_file #4016)env_name
ignore
source_maps
(https://github.com/swc-project/cli/blob/d60fa69498e970ec045b194bf13a31c9ed6ce413/src/swc/file.ts#L78)source_maps_target
source_file_name
(fix(cli): Use the source-file-name and source-root options #6973)source_root
(fix(cli): Use the source-file-name and source-root options #6973)watch
out_file
(feat(swc/cli_compile): support out_file #4016)out_dir
extensions
files
experimental_trace
trace_out_file
Babel plugin or link to the feature description
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: