developit / developit/microbundle

Add option to overwrite or extend default configs.

Open
#816 4 comments 0 reactions 0 assignees View on GitHub
increased scope
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.