@medly/rollup-config
v0.8.2
Published
Basic rollup config
Downloads
20
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
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