We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98f1096 commit 967b419Copy full SHA for 967b419
build.ts
@@ -95,7 +95,10 @@ export async function build({
95
for (const output of result.outputs) {
96
if (output.kind === "entry-point" && output.hash) {
97
const path = relative(outdir, output.path);
98
- hashed[`/${path}`] = output.hash;
+ // Bun has bug that generated hash cannot reflect the changes in dynamic import
99
+ hashed[`/${path}`] = Bun.hash
100
+ .murmur64v2(await output.arrayBuffer())
101
+ .toString(16);
102
}
103
104
Bun.write(
example/tsconfig.json
@@ -0,0 +1,8 @@
1
+{
2
+ "compilerOptions": {
3
+ "paths": {
4
+ "bun-react-ssr": [".."],
5
+ "bun-react-ssr/*": ["../*"]
6
+ }
7
8
+}
0 commit comments