Skip to content

Commit

Permalink
docs: update how to use swc plugin in rspack rule (#7904)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangmingyuan666 authored Sep 14, 2024
1 parent 9dff544 commit 3fb8f24
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions website/docs/zh/guide/features/builtin-swc-loader.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,17 @@ Rspack 支持在 `builtin:swc-loader` 里加载 SWC 的 Wasm 插件, 你可以
use: {
loader: 'builtin:swc-loader',
options: {
experimental: {
plugins: [
[
'@swc/plugin-remove-console',
{
exclude: ['error'],
},
jsc: {
experimental: {
plugins: [
[
'@swc/plugin-remove-console',
{
exclude: ['error'],
},
],
],
],
},
},
},
},
Expand Down

0 comments on commit 3fb8f24

Please sign in to comment.