Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Usar rollup #34

Merged
merged 2 commits into from
Jul 15, 2017
Merged

Usar rollup #34

merged 2 commits into from
Jul 15, 2017

Conversation

thiamsantos
Copy link
Contributor

@thiamsantos thiamsantos commented Jul 14, 2017

#33 O uso do rollup no lugar do browserify possibilita uma redução no tamanho do bundle. Vários projetos usam hoje o rollup inclusive o react. Vale a leitura desse artigo para mais informações.

Antes:
before-rollup

Depois:
after-rollup

Edit:
Remoção de comentário que não se aplica.

Copy link
Owner

@thgmhz thgmhz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thiamsantos Gostei bastante do rollup ele reduziu muito o build do browser!! Acho que está faltando apenas um detalhe pra finalizar o PR, eu comentei no review, repare que os testes estão falhando no travis. Vlw!

@@ -1,7 +1,7 @@
import auth from './auth'
import find from './find'

module.exports = {
export {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thiamsantos aqui precisa de export default, repare que os testes estão falhando por não encontrar os métodos auth e find.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Já corrigi o problema. Agora o projeto adere completamente à sintaxe dos módulos ES6.

@thgmhz
Copy link
Owner

thgmhz commented Jul 15, 2017

Maravilha! Ficou ótimo, valeu mesmo =)

@thgmhz thgmhz merged commit aeb67c5 into thgmhz:master Jul 15, 2017
@thgmhz thgmhz mentioned this pull request Jul 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants