-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add swc plugin for react server component
- Loading branch information
Showing
15 changed files
with
528 additions
and
57 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# These command aliases are not final, may change | ||
[alias] | ||
# Alias to build actual plugin binary for the specified target. | ||
prepublish = "build --target wasm32-wasi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[package] | ||
name = "swc_plugin_react_server_component" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
||
[dependencies] | ||
serde = "1" | ||
fxhash= "0.2.1" | ||
easy-error = "1.0.0" | ||
tracing = { version="0.1.34", features = ["release_max_level_info"] } | ||
swc_core = { version = "0.83.10", features = [ | ||
"ecma_plugin_transform", | ||
"ecma_utils", | ||
"ecma_visit", | ||
"ecma_ast", | ||
"common" | ||
]} | ||
swc_common = { version = "0.32.1", features = ["concurrent"] } | ||
serde_json = {version = "1", features = ["unbounded_depth"]} | ||
|
||
[dev-dependencies] | ||
testing = "0.34.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "@ice/swc-plugin-react-server-component", | ||
"version": "0.1.0", | ||
"license": "MIT", | ||
"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 ." | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
Oops, something went wrong.