I've the following statement:
exports.users = require("./users.js");
How can I convert that in a statement using the import/export notation defined in EcmaScript6?
I've the following statement:
exports.users = require("./users.js");
How can I convert that in a statement using the import/export notation defined in EcmaScript6?
You can use
export { default as users } from './users';
// ^^^^^^^ or whatever the module exports