What is needed is more of an export adapter than watering down of import
side syntax. In the Node world it is quite common to find files that server
nothing more than the role of some kind of adapter, that simply includes a
bunch of stuff and exports it directly with no modification except names.
There's no reason the same concept doesn't hold for requiring stuff on the
one end and exporting it using es6 modules out the other end. The form this
takes in the browser is a slightly modificied "adapter version" of some
existing file that adds a few lines at the beginning or end of the file
that does the dirtywork.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to