Comments (3)
As a general observation, it seems that the libphonenumber.js is included in the react-intl-tel-input component as well as requiring it in utilScript.
Also, just wondering why dist\main.js is so big as well, weighing in at 181kB for a react wrapper. I'm having a hard time justifying to my boss why we should be using this wrapper right now. :(
Even gzipped, this will double the js footprint we're currently delivering.
from react-intl-tel-input.
About the issue of dist/main.js
's big file size, I find a loader named uglify-loader can help us to compress the main.js
's size to be smaller.
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'uglify-loader!babel-loader'
}
and the result:
Asset Size Chunks Chunk Names
main.js 139 kB 0 [emitted] main
from 181kB to 139kB.
from react-intl-tel-input.
Closing the issue as the issue is resolved
from react-intl-tel-input.
Related Issues (20)
- Switching CI something more accessible / easier to handle HOT 8
- The automated release is failing 🚨 HOT 1
- Props section of the documentation is broken
- Using with Material UI HOT 3
- npm ERR! Could not resolve dependency: npm ERR! peer react@">15.4.2 <17.0.0" from [email protected] HOT 6
- Input always formats as USA? HOT 1
- Support React 18
- Country options don't work if "countriesData" is passed HOT 1
- missing area code for Pakistan
- Wrong country detected
- +92326 series is not being validated
- Colombian New numbers.
- Incorrect type for geoIpLookup prop
- Ecuador phone number validations
- Flags not showing when using a Pathbase
- country search onchange state restarts whenever spacebar is clicked
- US Phone numbers starting with '689' invalid
- Relavance of project in 2024
- Safari specific issue, Dropdown is not opening on click of arrow and country code.
- When paste the number with country code for the country selected by default not shows valid number till onBlur
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-intl-tel-input.