Closed H14 closed 1 year ago
Hello
I was wondering how to use this library in a project based on ECMAScript modules. I can only find examples based on CommonJS in the documentation.
Are there any plans to add ESM support in the future?
Can I, in the time being, safely wrap the require() statements, and how do I do it safely?
Thanks!
This works fine :-)
import mariadb from 'mariadb';
Hello
I was wondering how to use this library in a project based on ECMAScript modules. I can only find examples based on CommonJS in the documentation.
Are there any plans to add ESM support in the future?
Can I, in the time being, safely wrap the require() statements, and how do I do it safely?
Thanks!