Last 12 weeks · 0 commits
2 of 6 standards met
With the release of Node 24 and EOL of Node 18 next month, all LTS versions of Node will support having a entry point in allowing CJS files to load ESM files if they do not use top-level await. It would be a nice change as it would reduce the size of the package as a CJS build would no longer be needed for CJS consumers and would help support the ecosystem moving to ESM. This package appears to currently support older versions of Node, so it would require bumping the field and would be a breaking change
Repository: Rich-Harris/magic-string. Description: Manipulate strings like a wizard Stars: 2669, Forks: 116. Primary language: JavaScript. Languages: JavaScript (100%), HTML (0%). License: MIT. Latest release: v0.30.21 (4mo ago). Open PRs: 8, open issues: 21. Last activity: 4mo ago. Community health: 42%. Top contributors: Rich-Harris, antfu, mourner, greenkeeperio-bot, TrySound, guybedford, eventualbuddha, sapphi-red, btea, alangpierce and others.
Hello! I wanted to make simple source transform, as intended by your library. I do everything like documentation says here: https://rollupjs.org/plugin-development/#source-code-transformations using this example, rollup produces sourcemap as it was in the original file (file transform does work though) some guy on the internet have exactly the same problem (at least had it last year, I guess it's not solved) here: https://stackoverflow.com/questions/77607028/rollup-transform-of-file-including-sourcemap-for-vite I'll also try and reach people from rollup, but maybe I can get my solution here thanks!
Then equals to , which means output has 6 lines. So for its sourcemap, should also has 6 lines. But now it only has 2 lines. Current output Expected output