Skip to content

Commit

Permalink
Update RSC loader configs in README
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed May 14, 2024
1 parent 0395340 commit dce077f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-mayflies-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mfng/webpack-rsc': patch
---

Update RSC loader configs in README
13 changes: 13 additions & 0 deletions packages/webpack-rsc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ const serverConfig = {
test: /\.tsx?$/,
use: [rscSsrLoader, 'swc-loader'],
},
{
issuerLayer: webpackRscLayerName,
test: /\.m?js$/,
use: rscServerLoader,
},
{
test: /\.m?js$/,
use: rscSsrLoader,
},
],
},
],
Expand All @@ -108,6 +117,10 @@ const clientConfig = {
test: /\.tsx?$/,
use: [rscClientLoader, 'swc-loader'],
},
{
test: /\.m?js$/,
use: rscClientLoader,
},
],
},
plugins: [new WebpackRscClientPlugin({clientReferencesMap})],
Expand Down

0 comments on commit dce077f

Please sign in to comment.