bartosz-m / livescript-transform-esm

Livescript plugin enabling es modules imports and exports
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

@std/esm support? #1

Open jdalton opened 6 years ago

jdalton commented 6 years ago

I saw your WIP livescript loader and wanted to give you a heads up that there's @std/esm which enables ESM in Node 4+ in much the same way as the --experimental-modules flag.

node -r @std/esm file.mjs

The @std/esm loader works with things like @babel/register which makes me think there's probably a way for a livescript transform to work with @std/esm too.

bartosz-m commented 6 years ago

Thanks for info, @std/esm looks really interesting, but I'm not familiar with its implementation and couldn't find relevant info in documentation so I've opened issue about integrating external loaders.