@atir-naveed-geeksltd/rollup-config
v0.1.25
Published
Basic rollup config
Downloads
23
Readme
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
Rollup configuration recommended by Medly to give next-generation bundling powers to your react web applications.
Shared rollup config
Install
yarn add -D @atir-naveed-geeksltd/rollup-config
Usage
1. Use default settings
Add below code in your package.json
{
"script": {
"dist": "rollup --config node_modules/@atir-naveed-geeksltd/rollup-config/index.js"
}
}
2. Overwrite default settings
Add rollup.config.js
file at root level with below code
const { configure } = require('@atir-naveed-geeksltd/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
You can view the default config here