You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! The library is great but in has a disadvantage: it doesn't support Common JS import (i.e. const workly = require('workly');).
I understand that NodeJS doesn't support web workers but CJS is used in other cases, e.g. in Electron (which supports both browser and NodeJS APIs) or bundling JS files using Rollup.
I thing exporting the library in the UMD format is a great solution.
The text was updated successfully, but these errors were encountered:
Hi! The library is great but in has a disadvantage: it doesn't support Common JS import (i.e.
const workly = require('workly');
).I understand that NodeJS doesn't support web workers but CJS is used in other cases, e.g. in Electron (which supports both browser and NodeJS APIs) or bundling JS files using Rollup.
I thing exporting the library in the UMD format is a great solution.
The text was updated successfully, but these errors were encountered: