Skip to content

Commit

Permalink
Code splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
N2D4 committed Apr 2, 2024
1 parent 117e45d commit a0a5ffd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/web-demo/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default function Home() {
insert into books (title) values ('The Catcher in the Rye');
`);
if (!cancelled) setClient(client);
await client.query(`select * from books;`);
return () => {
mock.destroy();
};
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"description": "In-memory Postgres for unit tests",
"main": "dist/main.js",
"types": "dist/main.d.ts",
"type": "module",
"scripts": {
"build": "tsup src/main.ts --sourcemap --dts",
"build:watch": "npm run bundle -- --watch"
"build": "tsup src/main.ts --sourcemap --dts --splitting --format esm",
"build:watch": "npm run build -- --watch"
},
"author": "",
"license": "MIT",
Expand Down

0 comments on commit a0a5ffd

Please sign in to comment.