Rich-Harris / magic-string

Manipulate strings like a wizard
MIT License
2.34k stars 113 forks source link

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

Open shellscape opened 10 months ago

shellscape commented 10 months ago

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)
```

mourner commented 10 months ago

April 2023 seems pretty recent as far as small specialized libraries like this go, and there are only 2 open PRs — "unmaintained" is too strong of a judgement for that. Please submit a PR there or comment on an existing one.