Closed chdominguez closed 11 months ago
The problem is that for
function p(ยต, ฯ) {}
console.log(p);
Parcel outputs
(() => {
function $32aa4caf798866a8$var$p(\xb5, \u03C3) {}
console.log($32aa4caf798866a8$var$p);
})();
which is indeed invalid JS and then the swc optimiser complains
Still getting this issue in v2.11.0
@parcel/optimizer-swc: Expected unicode escape
/<my workspace>/node_modules/@reach/popover/dist/reach-popover.esm.js:308:4
307 | // we're assuming the popover will never contain the first tabbable
> 308 | // element, and it better not, because the trigger needs to be tabbable!
> | ^
309 | return event.target === tabbable(ownerDocument)[0];
310 | }
Pinning @swc/core
to 1.3.104 didn't fix it
Turns out in this case, the library has a รฉ
with accent, replacing that works (patch)
๐ bug report
After updating to macOS Sonoma, parcel stopped building one of my projects that contains the plotly.js library
๐ Configuration (.babelrc, package.json, cli command)
๐ค Expected Behavior
My project should build fine. In fact, if I setup a virtual machine with macOS Big Sur, the project compiles just fine. Moreover, in an Apple Silicon mac with the same macOS version, it works again as expected.
๐ฏ Current Behavior
The compilation fails with the following error message:
๐ Possible Solution
๐ฆ Context
๐ป Code Sample
๐ Your Environment