mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-23 18:50:10 +08:00
9 lines
308 B
JavaScript
9 lines
308 B
JavaScript
|
import { fileURLToPath } from 'url';
|
||
|
import { createRequire } from 'module';
|
||
|
const require = createRequire(fileURLToPath(import.meta.url));
|
||
|
|
||
|
/** @type {import('./dist/esm')} */
|
||
|
const esm = require('./dist/esm');
|
||
|
export const { resolve, load, getFormat, transformSource } =
|
||
|
esm.registerAndCreateEsmHooks();
|