nestjsx / crud

NestJs CRUD for RESTful APIs
https://github.com/nestjsx/crud/wiki
MIT License
4.04k stars 533 forks source link

crud-request: ES5 compatibility #346

Open jbjhjm opened 4 years ago

jbjhjm commented 4 years ago

Hi, it looks like the crud-request builder source is compiled with a modern ES target currently. As it can be used for frontend too, please add a es5 build to the node package to allow support for older browsers. Thanks :)

jonahsnider commented 4 years ago

Shouldn't this be the responsibility of the library consumer to use a tool like Babel to compile the JavaScript?

jbjhjm commented 4 years ago

Shouldn't this be the responsibility of the library consumer to use a tool like Babel to compile the JavaScript?

I see many libraries, especially for angular, providing several source versions for use with different ES versions. Actually this would be the only frontend lib which requires a transpiler to support a wide range of browsers. Because of that I believe the best solution is to alter the package to provide compatibility.