developit / developit/microbundle
Add option to overwrite or extend default configs.
- Dominant language
- JavaScript
- Stars
- 8.1k
- Forks
- 358
- PR merge metrics
- No merged PRs in 30d
Description
I love microbundle but sometimes we really would need a custom plugin or to overwrite a rollup config.
Therefore I would suggest the following:
new cli option:
```
--extendRollupConfig 'extend.js'
```
example extend file:
```
// extend.js (must return RollupConfig)
return {
plugins: [
myCoolPlugin() // Add new
terser({...}) // Overwrite terser plugin
]
outputOptions: {
systemNullSetters: true
}
}
```
The original config stays the same, but can be overridden if needed. Otherwise it is just extended.
I could take care of the implementation.
What do you think ?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.