-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
110 additions
and
7 deletions.
There are no files selected for viewing
Binary file modified
BIN
+11.4 KB
(100%)
packages/cli/flight-server-transform-plugin/flight_server_transform_plugin.wasm
Binary file not shown.
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
6 changes: 6 additions & 0 deletions
6
packages/cli/flight-server-transform-plugin/tests/fixture/default-actions/arrow/input.tsx
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,6 @@ | ||
import { z } from 'zod'; | ||
|
||
export default () => { | ||
'use server'; | ||
return `default`; | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/cli/flight-server-transform-plugin/tests/fixture/default-actions/arrow/output.js
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,12 @@ | ||
/* @modern-js-rsc-metadata | ||
{"directive":null,"exportNames":[{"exportName":"default"}]}*/ | ||
import { registerServerReference } from "@modern-js/runtime/rsc/server"; | ||
import { z } from 'zod'; | ||
|
||
const $$ACTION_0 = () => { | ||
'use server'; | ||
return `default`; | ||
} | ||
|
||
registerServerReference($$ACTION_0, module.id, "default"); | ||
export default $$ACTION_0; |
6 changes: 6 additions & 0 deletions
6
.../cli/flight-server-transform-plugin/tests/fixture/default-actions/function-decl/input.tsx
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,6 @@ | ||
import { z } from 'zod'; | ||
|
||
export default async function(){ | ||
'use server'; | ||
return `default`; | ||
} |
11 changes: 11 additions & 0 deletions
11
.../cli/flight-server-transform-plugin/tests/fixture/default-actions/function-decl/output.js
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,11 @@ | ||
/* @modern-js-rsc-metadata | ||
{"directive":null,"exportNames":[{"exportName":"default"}]}*/ | ||
import { registerServerReference } from "@modern-js/runtime/rsc/server"; | ||
import { z } from 'zod'; | ||
|
||
export default async function $$ACTION_0(){ | ||
'use server'; | ||
return `default`; | ||
} | ||
|
||
registerServerReference($$ACTION_0, module.id, "default"); |
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