You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cargo install swc_cli
swc plugin new --target-type wasm32-wasi my-first-plugin
rustup target add wasm32-wasi
cd my-first-plugin
cargo build-wasi --release
results in
Compiling my-first-plugin v0.1.0 (/.../my-first-plugin)
error: no rules expected the token `r#"console.log("transform");"#`
--> src/lib.rs:47:5
|
47 | r#"console.log("transform");"#
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no rules expected this token in macro call
|
note: while trying to match `ok_if_code_eq`
--> /.../.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc_ecma_transforms_testing-0.138.10/src/lib.rs:415:61
|
415 | ($syntax:expr, $tr:expr, $test_name:ident, $input:expr, ok_if_code_eq) => {
| ^^^^^^^^^^^^^
error: could not compile `my-first-plugin` (lib) due to previous error
Input code
No response
Config
No response
Playground link (or link to the minimal reproduction)
SWC Info output
Operating System:
Platform: darwin
Arch: arm64
Machine Type: arm64
Version: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000
CPU: (10 cores)
Models: Apple M1 Max
Binaries:
Node: 20.9.0
npm: 10.1.0
Yarn: N/A
pnpm: N/A
Relevant Packages:
@swc/core: N/A
@swc/helpers: N/A
@swc/types: N/A
typescript: 5.2.2
SWC Config:
output: N/A
.swcrc path: N/A
Next.js info:
output: N/A
Expected behavior
The plugin builds
Actual behavior
No response
Version
?
Additional context
No response
The text was updated successfully, but these errors were encountered:
**Description:**
I made a bad decision while migrating tests in the core repository to snapshot testing. So, I'm adding the `test!` macro back with a slight renaming.
**Related issue:**
- Closes#8504
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
results in
Input code
No response
Config
No response
Playground link (or link to the minimal reproduction)
SWC Info output
Expected behavior
The plugin builds
Actual behavior
No response
Version
?
Additional context
No response
The text was updated successfully, but these errors were encountered: