question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request]: Publish ESM on CDN

See original GitHub issue

Preflight Checklist

  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

What package is this feature request for?

rrweb

Problem Description

For pages that asynchronously install rrweb recorder, we currently use createElement('script') and script.onload to lazy import rrweb-record.min.js, but it will be more confortable if we can simply use await import('rrweb-record.esm.js').

Proposed Solution

Build and publish bundled ESM modules alongside current dist

Alternatives Considered

Using createElement('script') works but is a little complicated

Additional Information

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
otakustaycommented, Sep 15, 2022

I’m going to try to create a PR for this

0reactions
Juice10commented, Nov 2, 2022

I believe this PR might fix it: https://github.com/rrweb-io/rrweb/pull/1033 It’s not finished yet but includes esm in release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introducing esm.run - A New-Age CDN for JavaScript modules
Updated as of Sep 2022: We are excited to announce a long-awaited feature - improved support for packages distributed as ES modules.
Read more >
Dynamically Import ESM Modules From A CDN - ITNEXT
It tells the browser to load code on demand and only when it is required. const print = async (admin) => { if...
Read more >
An ESM bundle for any NPM package | by Joel Denning
I decided to publish them under the @esm-bundle npm scope, so that they are available via yarn add thing@npm:@esm-bundle/thing and on CDNs at ......
Read more >
Native ES Module CDN - Documentation - jspm.org
Native ES Module CDN. JSPM provides two primary modules CDNs - jspm.io , a highly optimized CDN for import maps from development to...
Read more >
Packages from CDNs | Manual - Deno
Because it simply serves up the original published source code, it doesn't really help when ... esm.sh is a CDN that was specifically...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found