-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[search] Support
bun
for the source code out of the box.
For example: `bun run src/bin/scramble.ts -- 333` Thanks to oven-sh/bun#3645 and oven-sh/bun#3669, we can use `bun` directly on our source code (except the WASM parts). This requires a few changes: - Move around the source code to account for the fact that `esbuild` does not have understand relative `new URL(…, import.meta.url)` or `import.meta.resolve(…)` references yet: evanw/esbuild#312 (comment) - This has the unfortunate side effect that some files have to move to the source code root. This isn't *bad* per se, but it breaks some assumptions while still relying on some other assumptions. I hope we can move the code back some time soon. - Avoid using the trampoline workaround when we seem to be in a browser environment. - Avoid assuming that the output of `await import.meta.resolve(…)` can be passed to `new URL(…)` (`bun` returns a bath without the `file:` protocol).
- Loading branch information
Showing
7 changed files
with
55 additions
and
35 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
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
6 changes: 3 additions & 3 deletions
6
...worker-workarounds/search-worker-entry.js → src/cubing/search-worker-entry.js
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
File renamed without changes.