You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
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.
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.
Nodejs and the browser now fully support the "import ... / export ... " syntax.
Will this package be migrated to?
The text was updated successfully, but these errors were encountered: