Open belozer opened 6 years ago
До 7.7.6 lib/bemtree/index.js подключал lib/bemxjst и наследовался от него. Начиная с 7.7.6 эти модули конкатятся в bemtree/bundle.js и bemhtml/bundle.js
lib/bemtree/index.js
lib/bemxjst
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.
До 7.7.6
lib/bemtree/index.js
подключалlib/bemxjst
и наследовался от него. Начиная с 7.7.6 эти модули конкатятся вbemtree/bundle.js
иbemhtml/bundle.js
browserify
На версии 7.7.4 упаковка весит 9Kb GZ
С версии 7.7.6 приходится так упаковывать (т.к. index.js обрезан)
и общий вес в GZ теперь 14Kb.
Разница в 5kb связана с дублированием кода в bundle.