question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

libphonenumber-js Breaks bundlephobia

See original GitHub issue

Type

Bug / Feature Request

Package name

libphonenumber-js

Entire error (stringified) I see in my browser console

main.bundle.js from Terser Export statement may only appear at top level [main.bundle.js:14,0] (visible in UI when expanding stack trace)

From console:

Failed to load resource: the server responded with a status of 500 () result.js:1:13414 0 “main.bundle.js from Terser↵Export statement may only appear at top level [main.bundle.js:14,0]”

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ipivcommented, Dec 24, 2019

In this case, changing regex to noParse: [/\.min\.js$/] would result in “metadata.min.json” to be parsed successfully.

1reaction
ipivcommented, Dec 24, 2019

From libphonenumber-js readme:

Importing functions directly from libphonenumber-js results in using the min metadata

Current Webpack configuration is set to not parse .min.js files See https://github.com/pulse-framework/pulse/pull/58

Read more comments on GitHub >

github_iconTop Results From Across the Web

libphonenumber-js v1.10.15 Bundlephobia
Size of libphonenumber-js v1.10.15 is 173.1 kB (minified), and 41.8 kB when compressed using GZIP. Bundlephobia helps you find the performance impact of...
Read more >
libphonenumber-js-utils v8.10.5 Bundlephobia
Size of libphonenumber-js-utils v8.10.5 is 225.9 kB (minified), and 50.3 kB when compressed using GZIP. Bundlephobia helps you find the performance impact ...
Read more >
google-libphonenumber v3.2.31 Bundlephobia
A small, lightweight javascript library for working with currency values. 99 %. Smaller. 1.03 kB. Min + Gzip ...
Read more >
Cannot get the libphonenumber npm package working, fs ...
I'm trying to use the googlei18n libphonenumber library for phone number validation. I'm using the npm package via npm i libphonenumber ...
Read more >
Awesome Web Dev resources - Notes - Zander Martineau
Search 100+ docs in one web app: HTML, CSS, JavaScript, PHP, Ruby, Python, Go, C, C++… ... Bundlephobia: See the "cost" of any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found