I have following js file (non ES6 file): (Other questions on SO, are about importing a ES6 type module, but here I am looking for importing a non-ES6 type module using import syntax.
== abc.js
module.exports = {
checkSomething: function(a,b) {
console.log("Checked");
}
}
Now I want this to import in my some other file, using "import" syntax.
import abc from './abc';
Is that possible to do that?
NS: My project is currently mix of ES6 and non ES6 codes. So, I am able to use import with ES6 kind of modules, so was wondering if I can do same for above case.