developit / developit/microbundle

Add option to overwrite or extend default configs.

Aberta
#816 4 comentários 0 reações 0 responsáveis Ver no GitHub
increased scope
Linguagem predominante
JavaScript
Estrelas
8.1k
Forks
358
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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 ?

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.