any-observable icon indicating copy to clipboard operation
any-observable copied to clipboard

Register in browser

Open dy opened this issue 6 years ago • 2 comments

Parcel, babel, browserify and webpack seem to support optional require:

let Observable
try { Observable = require('zen-observable') } catch (e) {}

Is there any sense to enable register-shim to detect available observable libs as well?

dy avatar Nov 11 '19 21:11 dy

I guess. PR welcome (including tests and docs).

sindresorhus avatar Nov 12 '19 11:11 sindresorhus

Interesting how would that be possible with top-level await import() - via import maps?

dy avatar Nov 12 '19 14:11 dy