Skip to content

Commit

Permalink
feat(closure): compile without writing polyfills
Browse files Browse the repository at this point in the history
fix #66
  • Loading branch information
grantila committed Sep 25, 2021
1 parent aa9861c commit 8abfbfe
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 67 deletions.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
BASEDIR=.
CLOSURE_LIBRARY_DIR=${BASEDIR}/node_modules/google-closure-library

COMPILATION_LEVEL=ADVANCED_OPTIMIZATIONS
COMPILATION_LEVEL=ADVANCED

node_modules/.bin/google-closure-compiler \
--compilation_level=${COMPILATION_LEVEL} \
Expand Down Expand Up @@ -50,4 +50,5 @@ node_modules/.bin/google-closure-compiler \
--js="!build/libphonenumber/javascript/i18n/phonenumbers/metadatalite.js" \
--js="!build/libphonenumber/javascript/i18n/phonenumbers/regioncodefortesting.js" \
--js=src/index.js \
--rewrite_polyfills=no \
--js_output_file=lib/index.js
Loading

0 comments on commit 8abfbfe

Please sign in to comment.