Skip to content

Commit

Permalink
platform: "browser" (tsup)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruucm committed Sep 10, 2024
1 parent fb16601 commit 6db77cb
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"framer": "^2.4.1",
"react": "^18.3.1",
"socket.io": "^4.7.5",
"socket.io-client": "^4.7.5",
"tailwindcss": "^3.4.10",
"tsup": "^8.2.4",
"typescript": "^5.5.4"
Expand Down
36 changes: 36 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ export default defineConfig((options): any => {
"src/Button.tsx",
"src/utils/live-reload/useRealtimeComponent.ts",
],
platform: "browser",
format: ["esm", "cjs"],
dts: true,
minify: !isDev,
external: ["react", "framer", "framer-motion", "socket.io-client"],
external: ["react", "framer", "framer-motion"],
async onSuccess() {
if (!isDev) return;

Expand Down

0 comments on commit 6db77cb

Please sign in to comment.