Comments (3)
Yes, We hope that Js-sdsl can be compatible with more browsers so we set target to ES5 for ES module.
from js-sdsl.
All modern browsers support much higher than es5 though - esp if they truly support ESM.
For example every modern browser supports es6 classes https://caniuse.com/es6-class
Why not just leave it to the user to downlevel your code for their target environment? It's going to be very, very rare that anyone is going to consume your package on the web without passing it through a bundler first.
The issue is that anyone consuming your package from nodejs is stuck using your downleveled code if they import your package via ESM - which is a really backwards experience!
from js-sdsl.
All modern browsers support much higher than es5 though - esp if they truly support ESM. For example every modern browser supports es6 classes https://caniuse.com/es6-class
Why not just leave it to the user to downlevel your code for their target environment? It's going to be very, very rare that anyone is going to consume your package on the web without passing it through a bundler first.
The issue is that anyone consuming your package from nodejs is stuck using your downleveled code if they import your package via ESM - which is a really backwards experience!
Sounds good, we might change the building target of ESM to ES6 at version 5.0.
from js-sdsl.
Related Issues (20)
- Find a way to do bench for database connection
- Memory complexity? HOT 12
- Export default for isolatation package HOT 9
- iterator access denied?why? HOT 3
- [RFC] About the version 5.x
- Find a new way to do publish HOT 4
- Question: OrderedSet and comparison function HOT 4
- OrderedSet with less than 3 items reverse iteration infinite loop HOT 4
- OrderedMapIterator.pointer does not support array destructuring assignment (TypeError: it.pointer is not iterable) HOT 3
- `isAccessible` property for iterators? HOT 2
- Queue is empty, but the last value still exists HOT 2
- Standardize HashContainer HOT 1
- Optimize HashContainer until the performance is on par with ES6 HOT 9
- Reduce packaging size HOT 15
- bug: get wrong tree index when tree size is 1 HOT 1
- Make heap stronger HOT 1
- Write examples for all apis
- Error: Cannot find module './Base' HOT 2
- Display version selection on the home page of gh-pages HOT 7
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 js-sdsl.