ES6 support
honzahajek opened this issue · comments
Jan Hájek commented
const {authenticate} = require("ldap-authentication");
to
import {authenticate} from "ldap-authentication";
and another required packages
https://stackblitz.com/edit/vite-ldap?file=main.js&terminal=dev
shaozi commented
does this change break scripts that are using require
?
shaozi commented
I incline to implement this since es6 in Node is mature and has large user base. The only concern I have is that existing cjs users will be forced to move their projects to es6.
If you have a backward compatible way of this transaction please share it here.