-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
We can enable importing named exports for non-ES6 modules like:
import { readFile } from 'fs';To do this means making the module object look like:
var mObj = { default: require('fs') };
// extend with named properties before defining the module
extend(mObj, mObj.default);
return System.newModule(mObj);This is effectively what 6to5 does. It's just a one way road we should go down carefully...
Metadata
Metadata
Assignees
Labels
No labels