0.2.1 • Published 1 year ago
@naiable/rollup-config v0.2.1
Opinionated Rollup Configuration
This is my rollup configuration for building JavaScript libraries like tsup.
TypeScriptCommonJS PluginAlias Plugin, default configure@tosrc/Node Resolve Plugindts, generate.d.ts、d.mts、d.ctsfiles
By default, There will be generate 3 folder:
dist/
├── cjs/ # CommonJS
├──── index.cjs
├──── index.d.cts # The typing
├── esm/ # ES Module
├──── index.mts
├──── index.d.mts # The typing
├── types/ # TypeScript Declaration
├──── index.d.ts # The typingUsage
It very easy to use, just install and create a rollup.config.ts file.
npm i @naiable/rollup-config -Dimport naiup from "@naiable/rollup-config";
export default naiup();