@medly/rollup-config
TypeScript icon, indicating that this package has built-in type declarations

0.8.2 • Public • Published

Rollup Config

What is rollup.js?

Rollup is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library or application.

About

Recommended Rollup configurations to give next-generation bundling powers to your react web applications.

Shared Rollup config

Install

yarn add -D @medly/rollup-config

Usage

1. Use default settings

Add below code in your package.json

{
 "script": {
  "dist": "rollup --config node_modules/@medly/rollup-config/index.js"
 }
}

2. Overwrite default settings

Add rollup.config.js file at root level with below code

const { configure } = require('@medly/rollup-config');

module.exports = configure({
 input = ["./src/index.ts"]
});

Add below code in your package.json

{
 "script": {
  "dist": "rollup --config rollup.config.js"
 }
}

Note: Add tsconfig.json file at the root level to emit type declaration files.

Default config

To view the default config click here

Readme

Keywords

Package Sidebar

Install

npm i @medly/rollup-config

Weekly Downloads

3

Version

0.8.2

License

MIT

Unpacked Size

12.6 kB

Total Files

5

Last publish

Collaborators

  • kdabir
  • gmukul01