Skip to content

zero-config/zero-bundler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zero Bundler

Zero config bundler for npm package. Support customizable babel config and typescript config.

Installation

yarn add zero-bundler --dev

Usage

Update your package.json:

{
  "source": "./src/index.js", // Entry file(TS file end with .ts/.tsx)
  "main": "dist/index.js", // Output commonjs module
  "modules": "dist/index.m.js", // Output ES module
  "scripts": {
    "build": "zero"
  },
}

Then run yarn build.