diff --git a/examples/with-react-native-web/packages/ui/src/index.tsx b/examples/with-react-native-web/packages/ui/src/index.tsx index f4ea832165df1..1a48e2186487e 100644 --- a/examples/with-react-native-web/packages/ui/src/index.tsx +++ b/examples/with-react-native-web/packages/ui/src/index.tsx @@ -1 +1 @@ -export { Button, type ButtonProps } from "./button"; +export { Button, type ButtonProps } from "./Button"; diff --git a/examples/with-react-native-web/packages/ui/tsup.config.ts b/examples/with-react-native-web/packages/ui/tsup.config.ts index 26e5d59e2184c..7104bc6ad5094 100644 --- a/examples/with-react-native-web/packages/ui/tsup.config.ts +++ b/examples/with-react-native-web/packages/ui/tsup.config.ts @@ -2,11 +2,12 @@ import { defineConfig, Options } from "tsup"; export default defineConfig((options: Options) => ({ entry: { - ".": "src/index.tsx", + index: "src/index.tsx", }, banner: { js: "'use client'", }, + clean: true, format: ["cjs", "esm"], external: ["react"], dts: true,