Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bem-xjst 7.7.6-7.7.7. Увеличен размер бандла bemtree и bemhtml на клиенте #527

Open
belozer opened this issue May 8, 2018 · 0 comments

Comments

@belozer
Copy link
Member

belozer commented May 8, 2018

До 7.7.6 lib/bemtree/index.js подключал lib/bemxjst и наследовался от него. Начиная с 7.7.6 эти модули конкатятся в bemtree/bundle.js и bemhtml/bundle.js

browserify

На версии 7.7.4 упаковка весит 9Kb GZ

const engines = {
    bemtree : require('bem-xjst/lib/bemtree/'),
    bemhtml : require('bem-xjst/lib/bemhtml/'),
};

С версии 7.7.6 приходится так упаковывать (т.к. index.js обрезан)

const engines = {
    bemtree : require('bem-xjst/lib/bemtree/bundle'),
    bemhtml : require('bem-xjst/lib/bemhtml/bundle'),
};

и общий вес в GZ теперь 14Kb.

Разница в 5kb связана с дублированием кода в bundle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant