mirror of
https://github.com/oven-sh/bun
synced 2026-02-19 15:21:54 +00:00
* Ensure we always deref the source code * Move more work to concurrent transpiler * Update NodeModuleModule.h * Update string.zig * Make `Bun.gc()` more effective * Update text-loader-fixture-dynamic-import-stress.ts * Update ZigSourceProvider.cpp * Fixes #6946 * Update ModuleLoader.cpp * Update ModuleLoader.cpp * Fixes #8965 * Fixups * Update ModuleLoader.cpp * Update ModuleLoader.cpp * Load it * Update module_loader.zig * Update module_loader.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
10 lines
274 B
TypeScript
Generated
10 lines
274 B
TypeScript
Generated
const count = process.platform === "win32" ? 1000 : 10_000;
|
|
for (let i = 0; i < count; i++) {
|
|
await import("./text-loader-fixture-text-file.txt?" + i++);
|
|
}
|
|
Bun.gc(true);
|
|
|
|
const { default: text } = await import("./text-loader-fixture-text-file.txt");
|
|
|
|
console.write(text);
|