Skip to content

Commit

Permalink
fix(build): build fix
Browse files Browse the repository at this point in the history
fix #67
  • Loading branch information
grantila committed Oct 2, 2021
1 parent 8abfbfe commit d74f36c
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 61 deletions.
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,9 @@ node_modules/.bin/google-closure-compiler \
--js="!build/libphonenumber/javascript/i18n/phonenumbers/regioncodefortesting.js" \
--js=src/index.js \
--rewrite_polyfills=no \
--emit_use_strict=no \
--language_out=ECMASCRIPT_2015 \
--chunk_output_type=GLOBAL_NAMESPACE \
--rename_prefix_namespace=exports \
--module_resolution=NODE \
--js_output_file=lib/index.js
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = require( './lib' ).PhoneNumber;
module.exports = require( './lib' )[ 'PhoneNumber$$module$src$index' ];

Object.defineProperty(
module.exports,
Expand Down
Loading

0 comments on commit d74f36c

Please sign in to comment.