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
Research direction
Start by tracing the CLI option handling and default Rollup configuration, then inspect how the proposed extend.js module would be loaded. Done means the new option can extend or override the default configuration while preserving existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, rollup
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100