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
I'm attempting to configure swc to use a custom plugin via the command line as part of a larger build process. Essentially I'm trying to replicate this .swcrc:
Calling swc --out-dir=dist --config=jsc.experimental.plugins=[[\"my_plugin.wasm\", {}]] src/ fails with an error like this:
invalid type: string "[[\"my_plugin.wasm\"", expected a sequence at line 1 column 187
Failed to compile 1 file with swc.
Error: Failed to compile:
test/index.ts
at initialCompilation (/Users/wburgin/.nvm/versions/node/v12.20.2/pnpm-global/4/node_modules/.pnpm/@swc/cli@0.1.57_@swc+core@1.2.208/node_modules/@swc/cli/lib/swc/dir.js:172:19)
at async dir (/Users/wburgin/.nvm/versions/node/v12.20.2/pnpm-global/4/node_modules/.pnpm/@swc/cli@0.1.57_@swc+core@1.2.208/node_modules/@swc/cli/lib/swc/dir.js:16:5)
I poked around a little bit, and here's what swcOptions ends up set to:
I'm attempting to configure
swc
to use a custom plugin via the command line as part of a larger build process. Essentially I'm trying to replicate this.swcrc
:Calling
swc --out-dir=dist --config=jsc.experimental.plugins=[[\"my_plugin.wasm\", {}]] src/
fails with an error like this:I poked around a little bit, and here's what
swcOptions
ends up set to:I think the
collect()
function (here) splitting the input on commas is causing the truncation.The text was updated successfully, but these errors were encountered: