Skip to content

Commit d8fc2ea

Browse files
committed
fix: bundle pure.ts file correctly
1 parent 1d6be8c commit d8fc2ea

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"compilerOptions": {
33
"target": "ESNext",
4-
"jsx": "react-jsx",
4+
"jsx": "preserve",
5+
"jsxFactory": "React.createElement",
56
"jsxImportSource": "react",
67
"lib": ["esnext", "dom", "DOM.Iterable"],
78
"module": "ESNext",

tsup.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from 'tsup'
22

33
export default defineConfig({
4-
entry: ['./src/index.ts', './src/pure.ts'],
4+
entry: ['./src/index.ts', './src/pure.tsx'],
55
format: ['esm'],
66
dts: true,
77
})

0 commit comments

Comments
 (0)