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:

committed by
Miško Hevery

parent
4c5aac8cd5
commit
48789360b1
2
build.sh
2
build.sh
@ -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"
|
||||
|
Reference in New Issue
Block a user