mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-24 03:00:39 +08:00
9 lines
380 B
JavaScript
9 lines
380 B
JavaScript
import { fileURLToPath } from 'url';
|
|
import { createRequire } from 'module';
|
|
const require = createRequire(fileURLToPath(import.meta.url));
|
|
|
|
// TODO why use require() here? I think we can just `import`
|
|
/** @type {import('./dist/child-loader')} */
|
|
const childLoader = require('./dist/child/child-loader');
|
|
export const { resolve, load, getFormat, transformSource } = childLoader;
|