Comments (4)
Right now, platform.js is a written with CommonJS, so there might not be much benefits in terms of just providing a ESM version, although I might look into that in the future. An ESM version also isn't likely to improve tree-shaking.
from platform.js.
Angular warns users about commonjs packages and says that it could lead to optimization bailouts.
It would be nice to have platformjs as es6 module. E.g. you could convert the project to a Typescript project and build it with rollup.js. After that you get a commonjs ( and a minified version) and a es6 module automatically. @bnjmnt4n please have a look on my tsrollupjs-sample project. It's very easy to migrate and Typescript is easy to learn.
from platform.js.
ESM version would be beneficial for svelte users, otherwise this library can't be used there.
from platform.js.
Are there any updates on this? I wanted to use this for a react project in my team and not having an esm version makes it difficult.
from platform.js.
Related Issues (20)
- Fix Platform typings HOT 1
- Firefox version detected partially. HOT 2
- Platform.name is not detecting firefox in iPad HOT 2
- Is this library still maintained? HOT 1
- Wrong recognition of Chrome on Android tablet
- Brave and Vivaldi browser returns Chrome HOT 1
- Detect iPad as iOS
- Update demo to platform.js v1.3.6
- Cannot read property '0' of null #109 -- not fixed
- Detect Windows 11 (User-Agent Client Hints) HOT 1
- Doesnt Support Windows 11 and MacOS 12 HOT 2
- Will platform.js work for Chrome or Firefox versions greater than 100?? HOT 2
- Can we detect Apple M1/ARM machines?
- Why v1.3.6 is parsing Edge as "Microsoft Edge" instead of "Chrome"
- Echo/1.0(APNG)
- is there Python version of this please? HOT 1
- Tested
- Hello! It is not correctly detecting some Samsumg devices like Samsumg Galaxy A12 device model SM-A125M
- Abandoned project? HOT 3
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 platform.js.