加载用户提供的配置文件,支持typescript。
# npm
npm install @walrus/bundle-require esbuild --save
# yarn
yarn add @walrus/bundle-require esbuild
#pnpm
pnpm install @walrus/bundle-require esbuild
import { bundleRequire } from '@walrus/bundle-require';
const { mod } = await bundleRequire({
filePath: '.walrusrc.ts'
});