Skip to content

Commit

Permalink
chore: update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia committed Oct 25, 2024
1 parent ae7e593 commit 1d2da4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions packages/react-server-component/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"name": "@ice/swc-plugin-react-server-component",
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",
"keywords": ["swc-plugin"],
"files": [
"swc_plugin_react_server_component.wasm"
],
"keywords": [
"swc-plugin"
],
"main": "swc_plugin_react_server_component.wasm",
"scripts": {
"prepublishOnly": "cargo prepublish --release && cp ../../target/wasm32-wasi/release/swc_plugin_react_server_component.wasm ."
Expand Down
2 changes: 1 addition & 1 deletion packages/react-server-component/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl<C: Comments> ReactServerComponent<C> {
init: Some(Box::new(Expr::Call(CallExpr {
span: DUMMY_SP,
callee: quote_ident!("require").as_callee(),
args: vec![quote_str!("react-server-dom-webpack/server.node").as_arg()],
args: vec![quote_str!("react-server-dom-webpack/server.edge").as_arg()],
type_args: Default::default(),
}))),
definite: false,
Expand Down

0 comments on commit 1d2da4a

Please sign in to comment.