File tree Expand file tree Collapse file tree 4 files changed +228
-19
lines changed Expand file tree Collapse file tree 4 files changed +228
-19
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2929 "." : {
3030 "types" : " ./dist/index.d.ts" ,
3131 "require" : " ./dist/index.cjs" ,
32- "import" : " ./dist/index.mjs"
32+ "import" : " ./dist/index.js"
33+ },
34+ "./solid" : {
35+ "import" : " ./dist/index.jsx"
3336 }
3437 },
3538 "main" : " ./dist/index.cjs" ,
36- "module" : " ./dist/index.mjs " ,
39+ "module" : " ./dist/index.js " ,
3740 "types" : " ./dist/index.d.ts" ,
3841 "files" : [
3942 " dist"
4043 ],
4144 "scripts" : {
42- "build" : " unbuild " ,
45+ "build" : " tsup " ,
4346 "dev" : " pnpm -C playground run dev" ,
4447 "dev:build" : " pnpm -C playground run build" ,
4548 "test:types" : " tsc --noEmit"
5356 "devDependencies" : {
5457 "@types/node" : " ^18.16.0" ,
5558 "solid-js" : " ^1.7.3" ,
59+ "tsup" : " ^6.7.0" ,
60+ "tsup-preset-solid" : " ^0.1.8" ,
5661 "vite-plugin-solid" : " ^2.7.0"
5762 }
5863}
Original file line number Diff line number Diff line change 1+ import { defineConfig } from 'tsup-preset-solid'
2+
3+ export default defineConfig (
4+ {
5+ entry : 'src/index.tsx' ,
6+ } ,
7+ {
8+ cjs : true ,
9+ } ,
10+ )
You can’t perform that action at this time.
0 commit comments