Zero config bundler for npm package. Support customizable babel config and typescript config.
yarn add zero-bundler --dev
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.