-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into kjs/sync-store
- Loading branch information
Showing
21 changed files
with
302 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# @ponder/client | ||
|
||
## 0.9.24 | ||
|
||
## 0.9.23 | ||
|
||
## 0.9.22 | ||
|
||
## 0.9.21 | ||
|
||
## 0.9.20 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { readFileSync } from "node:fs"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import { build } from "vite"; | ||
import { expect, test } from "vitest"; | ||
|
||
let __dirname = fileURLToPath(new URL(".", import.meta.url)); | ||
__dirname = path.resolve(__dirname, ".."); | ||
|
||
const packageJson = JSON.parse( | ||
readFileSync(path.resolve(__dirname, "./package.json"), "utf-8"), | ||
); | ||
const dependencies = Object.keys(packageJson.dependencies).filter( | ||
(dep) => !["@ponder/client", "@ponder/utils"].includes(dep), | ||
); | ||
|
||
test("should bundle the entry file for the browser without throwing", async () => { | ||
await expect( | ||
build({ | ||
resolve: { | ||
alias: { | ||
"@": path.resolve(__dirname, "./src"), | ||
"@ponder/client": path.resolve(__dirname, "../client/src"), | ||
"@ponder/utils": path.resolve(__dirname, "../utils/src"), | ||
}, | ||
}, | ||
// Mock build settings | ||
logLevel: "error", | ||
build: { | ||
lib: { | ||
entry: path.resolve(__dirname, "./src/index.ts"), | ||
name: "ponder", | ||
formats: ["es"], | ||
}, | ||
// Speed up the build | ||
write: false, | ||
minify: false, | ||
reportCompressedSize: false, | ||
sourcemap: false, | ||
// Exclude all dependencies | ||
rollupOptions: { external: dependencies }, | ||
}, | ||
}), | ||
).resolves.toBeDefined(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.