@naiable/rollup-config

0.1.7 • Public • Published

Opinionated Rollup Configuration

This is my rollup configuration for building JavaScript libraries like tsup.

  • TypeScript
  • CommonJS Plugin
  • Alias Plugin, default configure @ to src/
  • Node Resolve Plugin
  • dts, generate .d.tsd.mtsd.cts files

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 typing

Usage

It very easy to use, just install and create a rollup.config.ts file.

npm i @naiable/rollup-config -D
import naiup from "@naiable/rollup-config";

export default naiup();

/@naiable/rollup-config/

    Package Sidebar

    Install

    npm i @naiable/rollup-config

    Weekly Downloads

    6

    Version

    0.1.7

    License

    MIT

    Unpacked Size

    81.2 kB

    Total Files

    35

    Last publish

    Collaborators

    • nailiable