-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1293653: ESM (ESModule) support #813
Comments
thank you for submitting this enhancement idea - team will consider it for later, as it is not in the plans for the near future. |
Thanks dude! |
Would you accept a PR for this? |
as it is not in plans for the foreseeable future, if you however have the resources then it's indeed very much appreciated ! |
Since most modern JS/TS codebases leverage ES Modules, could you at least provide documentation on how to update build config using commonjs/polyfill to be compatible? EDIT: For those of you struggling to get this lib building and running in an ES Module based project. I'd recommend checking out Sequelize with their Snowflake experimental support. It uses this lib under the hood but provides good quality of life features on top of it such as using ESModule out of the box, it enables the use of async/await so you don't have to manage promise wrapping yourself (longest running feature request since 2018 on this lib) + you get the added benefit of adding types to your query results which is useful in Typescript based projects. |
Adding this shim to my esbuild options allows it work with ES Modules, but it's painful.
|
What is the current behavior?
This package does not support ESM (ESModule)
What is the desired behavior?
This package should suport both CommonJS and ESModule
How would this improve
snowflake-connector-nodejs
?More and more new projects are adopting ESM
The text was updated successfully, but these errors were encountered: