Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 455 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 455 Bytes

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.