Skip to content

Commit 5a02d3f

Browse files
committed
add comment
1 parent a3dbf13 commit 5a02d3f

File tree

1 file changed

+8
-1
lines changed
  • packages/next-swc/crates/next-core/src/next_server

1 file changed

+8
-1
lines changed

packages/next-swc/crates/next-core/src/next_server/context.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ pub async fn get_server_module_options_context(
260260
ServerContextType::AppSSR { .. } => {
261261
let module_options_context = ModuleOptionsContext {
262262
custom_ecmascript_transforms: vec![EcmascriptInputTransform::ServerDirective(
263+
// ServerDirective is not implemented yet and always reports an issue.
264+
// We don't have to pass a valid transition name yet, but the API is prepared.
263265
StringVc::cell("TODO".to_string()),
264266
)],
265267
execution_context: Some(execution_context),
@@ -286,7 +288,12 @@ pub async fn get_server_module_options_context(
286288
EcmascriptInputTransform::ClientDirective(StringVc::cell(
287289
"server-to-client".to_string(),
288290
)),
289-
EcmascriptInputTransform::ServerDirective(StringVc::cell("TODO".to_string())),
291+
EcmascriptInputTransform::ServerDirective(
292+
// ServerDirective is not implemented yet and always reports an issue.
293+
// We don't have to pass a valid transition name yet, but the API is
294+
// prepared.
295+
StringVc::cell("TODO".to_string()),
296+
),
290297
],
291298
execution_context: Some(execution_context),
292299
..Default::default()

0 commit comments

Comments
 (0)