Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/rsc/provider.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file provides the AI context to all AI Actions via AsyncLocalStorage.

import * as React from 'react';
import { InternalAIProvider } from './rsc-shared';
import { InternalAIProvider } from './rsc-shared.mjs';
import {
withAIState,
getAIStateDeltaPromise,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/rsc/rsc-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export {
useAIState,
useActions,
useSyncUIState,
} from './rsc-shared';
} from './rsc-shared.mjs';
File renamed without changes.
3 changes: 2 additions & 1 deletion packages/core/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export default defineConfig([
},
// RSC APIs - shared client
{
entry: ['rsc/rsc-shared.ts'],
// Entry is `.mts` as the entrypoints that import it will be ESM so it needs exact imports that includes the `.mjs` extension.
entry: ['rsc/rsc-shared.mts'],
outDir: 'rsc/dist',
format: ['esm'],
external: ['react', 'zod'],
Expand Down
Loading