developit / developit/microbundle

Add option to overwrite or extend default configs.

オープン
#816 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
increased scope
主要言語
JavaScript
スター
8.1k
フォーク
358
PR マージ指標
30日以内にマージされた PR はありません

説明

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 ?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。