Kyle Cutler
Kyle Cutler
This seems to be some sort of overflow / compatibility issue. I was able to reproduce this behavior by compiling the line: ```javascript console.log("I will not produce invalid sourcemaps"); ```...
After more investigation, it looks like this is indeed a bug in [`sourcemap-codec`](https://github.com/Rich-Harris/sourcemap-codec), which is used by both Rollup and `magic-string`, whereas UglifyJS uses [`source-map`](https://github.com/mozilla/source-map). There is a PR open...
Parsing all of the imports is necessary – even if the imported / exported variables aren't used, the modules could still have side effects like assigning to a global object....
It looks like this is due to the `collapseSourcemaps()` utility function not always properly testing for missing sourcemaps. A workaround is to return `{code, map: null}`, as `null` and `undefined`...
It definitely looks like a bug in the code, and not the documentation. Just returning the transformed code is very clearly supported -- there is existing code and test cases...
It looks like Rome doesn't support [nested conditions](https://nodejs.org/api/esm.html#esm_nested_conditions) in the package.json `exports` field. For example `uuid`'s `exports` field looks like this: ```json "exports": { ".": { "node": { "module": "./dist/esm-node/index.js",...
If this is happening for you even in the Rome repo it may be a system-dependent issue. @aravind1078 Please run `rome rage --summary` and paste the output here.
I'm going to take a shot at this.
@loganfsmyth I'm hesitant to use your proposed solution, because it would mean that code which relies on the scoping of the iteration variable could break if it gets replaced with...
Looks like this is a duplicate of #8785, which should be fixed in release 7.1.4. The main Babel REPL seems to be down for me right now, but testing in...