webmodules/get-window

ES6 module version?

eventualbuddha opened this issue · 0 comments

To ease bundling of get-window (and get-document) in keysim.js I'm interested in using a version of these libraries written using ES6 module syntax. The practice others and I have been angling for is to write in ES6 (e.g. lib/get-window.js), build a UMD file for other module systems (e.g. dist/get-window.js), and ship both in the npm package. The package.json would then be annotated with a jsnext:main entry to tools like rollup can automatically find the ES6 version and use it.

If you're not interested, I understand. I'll simply use my own fork.