Skip to content

ESM distributable client is missing non-minified version #4731

Closed

Description

@FossPrime

Describe the bug
There is no debuggable ESM distributable... making debugging extremely difficult in some situations... like StackBlitz, where WS inspector and source map file loader in DevTools won't work as they are provided by a service worker. Bundling it ourselves with a service worker doesn't solve the problem... we need an ESM debuggle package hosted somewhere. we cannot load ...?module due to node dependencies in package.json (ws and xml).

To Reproduce

Please fill the following code example:

Socket.IO client version: 4.6.2

Client

import io from 'https://unpkg.com/[email protected]/dist/socket.io.esm.js';

Expected behavior
Load as normal, with debug logging calls.

Platform:

  • Device: Yes
  • OS: Yes

Additional context
Chrome has a bug where DevTools can't load file based source maps from a service worker. Easy fix is to just point to unpackage... but there is no ESM option.

https://bugs.chromium.org/p/chromium/issues/detail?id=1206431#c13

Activity

  1. added
    to triage
    on Jun 2, 2023
  2. added
    enhancement
    and removed
    to triage
    on Jun 20, 2023
  3. added this to the 4.7.0 milestone on Jun 20, 2023
  4. darrachequesne commented on Jun 23, 2023

    @darrachequesne
    Member

    This should be fixed by socketio/socket.io-client@781d753, included in version 4.7.0.

    Please reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions