Skip to content

Commit

Permalink
fix(zero): Do not "bundle" change-protocol (#3517)
Browse files Browse the repository at this point in the history
The server part of zero is not bundled using esbuild. It is just
compiled using tsc and the code structure maps the source code
structure.

Followup to #3491
  • Loading branch information
arv authored Jan 13, 2025
1 parent dee9eb7 commit 9f3a68b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/zero/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
},
"./change-protocol": {
"types": "./out/zero-cache/src/services/change-source/protocol/mod.d.ts",
"default": "./out/change-protocol.js"
"default": "./out/zero-cache/src/services/change-source/protocol/mod.js"
}
},
"bin": {
Expand Down
1 change: 0 additions & 1 deletion packages/zero/tool/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ async function buildZeroClient() {
react: basePath('src/react.ts'),
solid: basePath('src/solid.ts'),
advanced: basePath('src/advanced.ts'),
['change-protocol']: basePath('src/change-protocol.ts'),
};
const result = await esbuild.build({
...sharedOptions(minify, metafile),
Expand Down

0 comments on commit 9f3a68b

Please sign in to comment.