developit / web-worker

Consistent Web Workers in browser and Node.

Home Page:https://npm.im/web-worker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESM support

fabiospampinato opened this issue · comments

It'd be nice if this module supported ESM. The main thing that seems to require changing to me seems using the global __filename, which is not defined under ESM mode in Node.

Nevermind I had forgotten that I can just import CommonJS stuff from ESM modules, so this works already! Awesome!