Skip to content

Commit

Permalink
fix: restore client/index.js to ES5
Browse files Browse the repository at this point in the history
  • Loading branch information
dwbruhn committed Mar 9, 2024
1 parent 4407c71 commit c8179e1
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 55 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.147.1
* Bugfix:
* `client/index.js` was generated with ESNEXT in 1.142.0 instead of ES5

## 1.147.0

* Metadata:
Expand Down
2 changes: 2 additions & 0 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ util/metadataExtractor.js vendor/libphonenumber/javascript/i18n/phonenumbers/met
# Use local compiler
# https://www.npmjs.com/package/google-closure-compiler
# https://github.com/google/closure-compiler/wiki/Flags-and-Options
# Note: default value for language_out is ECMASCRIPT_NEXT, so transpile down to ECMASCRIPT5_STRICT
echo "Compiling with Google Closure Compiler..."
npx google-closure-compiler --version
npx google-closure-compiler \
--isolation_mode=IIFE \
--assume_function_wrapper \
--compilation_level=ADVANCED \
--warning_level=DEFAULT \
--language_out=ECMASCRIPT5_STRICT \
--js_output_file=client/index.js \
--js=src/phoneAdapter.js \
--js=src/injectMeta.js \
Expand Down
Loading

0 comments on commit c8179e1

Please sign in to comment.