Skip to content

加载用户提供的配置文件,支持typescript。

Notifications You must be signed in to change notification settings

walrusjs/bundle-require

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@walrus/bundle-require

加载用户提供的配置文件,支持typescript。

Forks Stars npm version

🏗 安装

# 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'
});