feat(common): generate closure-locale.ts to tree shake locale data (#18907)

Closure will only keep the data for the locale defined in `goog.LOCALE`

PR Close #18907
This commit is contained in:
Olivier Combe
2017-08-21 19:11:07 +02:00
committed by Miško Hevery
parent 4c5aac8cd5
commit 48789360b1
8 changed files with 2511 additions and 4 deletions

View File

@ -485,7 +485,7 @@ do
if [[ ${PACKAGE} == "common" ]]; then
echo "====== Copy i18n locale data"
rsync -a --exclude=*.d.ts --exclude=*.metadata.json ${OUT_DIR}/i18n_data/ ${NPM_DIR}/i18n_data
rsync -a --exclude=*.d.ts --exclude=*.metadata.json ${OUT_DIR}/locales/ ${NPM_DIR}/locales
fi
else
echo "====== Copy ${PACKAGE} node tool"