aboutsummaryrefslogtreecommitdiff
path: root/src/js/builtins/codegen/index.ts
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-07-19 19:28:53 -0700
committerGravatar GitHub <noreply@github.com> 2023-07-19 19:28:53 -0700
commit36866c4d7941d36656ab684e4dccecab2f06ebef (patch)
treec74b3e8579b8ce74da9be63d0037d06497ea6ef6 /src/js/builtins/codegen/index.ts
parentdd58508684fd37fb04317c90af714403d2a8ba5d (diff)
downloadbun-36866c4d7941d36656ab684e4dccecab2f06ebef.tar.gz
bun-36866c4d7941d36656ab684e4dccecab2f06ebef.tar.zst
bun-36866c4d7941d36656ab684e4dccecab2f06ebef.zip
Fix vite (#3694)
* Fix ServerWebSocket.readyState * Add create_hash_table to our repo * Fix #3216
Diffstat (limited to 'src/js/builtins/codegen/index.ts')
-rw-r--r--src/js/builtins/codegen/index.ts7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/js/builtins/codegen/index.ts b/src/js/builtins/codegen/index.ts
index 5fbc15279..4171533b2 100644
--- a/src/js/builtins/codegen/index.ts
+++ b/src/js/builtins/codegen/index.ts
@@ -8,12 +8,7 @@ import { spawn } from "bun";
async function createStaticHashtables() {
const STATIC_HASH_TABLES = ["src/bun.js/bindings/Process.cpp"];
console.time("Creating static hash tables...");
- const create_hash_table = [
- "src/bun.js/WebKit/Source/JavaScriptCore/create_hash_table",
- "bun-webkit/Source/JavaScriptCore/create_hash_table",
- ]
- .map(x => path.join(import.meta.dir, "../../../../" + x))
- .find(x => existsSync(x));
+ const create_hash_table = path.join(import.meta.dir, "../../../../src/bun.js/scripts/create_hash_table");
if (!create_hash_table) {
console.warn(
"Could not find create_hash_table executable. Run `bun i` or clone webkit to build static hash tables",