Skip to content

jridgewell/sourcemap-codec is unmaintained, throws error bundled with Vite #264

@shellscape

Description

@shellscape

When bundled with Vite out of the box, @jridgewell/sourcemap-codec isn't functioning correctly or doesn't have the right build settings. I considered opening an issue upstream, but the project is unmaintained since April 2023 and the author is not responding to contributions. Result is:

magic-string.es.mjs?v=71e65a2c:1 Uncaught SyntaxError: The requested module 'node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js?v=71e65a2c' does not provide an export named 'encode' (at magic-string.es.mjs?v=71e65a2c:1:10)
```


Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions