Replies: 1 comment
-
The main problem in here is we are behind of updating swc_cli's template after we make some changes. Most straightforward for now is referring latest plugins, like https://github.com/swc-project/plugins/blob/9054248ecde9114521cf634b06fd61f51355f535/packages/jest/src/lib.rs#L5-L9 which have correct imports for the changed namespaces, also need to use latest swc_core if possible. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I get that this is still an API in flux, but it's getting rather difficult to track the changes. I don't expect extensive documentation for something that's changing this frequently, but I haven't been able to make a "hello world" work that's still valid after a week. Is there a reasonable checklist of things to determine "how can I make a plugin that works?" If the answer is "go away while we settle it", that's fine too, but if so the docs should go back to calling it experimental.
Currently, if you follow the docs and create a plugin project via:
It creates a project with
Cargo.toml
including:attempting to
cargo build
on the resulting project hangs indefinitely on:One of my CPUs stays pegged at 100%. After roughly 30s, it starts switching which core that is every 2s, but there's always one that's maxed, and it never completes. I've tried this on multiple machines, all Arch Linux with current toolchains.
Updating the
Cargo.toml
file to:There is an error:
The example plugin in those docs hasn't compiled for a while now either:
Last time I could get something to compile at all, I *think* this is what would work now:
I'd rank myself a 9/10 for TypeScript, but a 2/10 for Rust, so I assume some of the toolchain issues are more obvious to Rustaceans, but is anyone interested in creating a repo with release tags for at least that "getting started" plugin that stays current?
Beta Was this translation helpful? Give feedback.
All reactions