node-require-directory icon indicating copy to clipboard operation
node-require-directory copied to clipboard

after changing extensions to .mjs and adding -r esm getting error module not defined.

Open xs2bharat opened this issue 6 years ago • 0 comments

Hi

I am pretty new to node. After changing module file extensions from ".js" to ."mjs" and adding -r esm arguments to node, I am getting error "module" is not defined.

Do you know how to add esm support?

xs2bharat avatar Feb 22 '19 16:02 xs2bharat