bun-polyfills: fix default exports

This commit is contained in:
jhmaster2000
2023-10-13 20:25:44 -03:00
parent 8fcd645bae
commit e53eb8f2d9
3 changed files with 7 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ export const main = path.resolve(process.cwd(), process.argv[1] ?? 'repl') satis
//? These are automatically updated on build by tools/updateversions.ts, do not edit manually.
export const version = '1.0.4' satisfies typeof Bun.version;
export const revision = '91f4ba534be9e23e6d4543738301af393848e954' satisfies typeof Bun.revision;
export const revision = '8fcd645baee24344eaa4169b16ca42b1f0af830c' satisfies typeof Bun.revision;
export const gc = (globalThis.gc ? (() => (globalThis.gc!(), process.memoryUsage().heapUsed)) : (() => {
const err = new Error('[bun-polyfills] Garbage collection polyfills are only available when Node.js is ran with the --expose-gc flag.');
@@ -593,3 +593,5 @@ export const plugin = bunPlugin satisfies typeof Bun.plugin;
});
}
});*/
export * as default from './bun.js';

View File

@@ -312,3 +312,5 @@ export const read = {
return koffi.decode(view, bOff, 'u64');
},
} satisfies typeof bunffi.read;
export * as default from './ffi.js';

View File

@@ -107,3 +107,5 @@ export const optimizeNextInvocation = (() => {
}) satisfies typeof jsc.optimizeNextInvocation;
export { setRandomSeed, getRandomSeed } from '../global/mathrandom.js';
export * as default from './jsc.js';