Spend hours to find out why oxc-parser@0.102.0 doesn't work in the Prettier playground.
Turns out it seems to be a Chrome bug. github.com/fisker/chrom...
cc @boshen.github.io 😀
Posts by
Wow, you can add a default export to a module that uses named exports
```js
// module.js
export * as default from './module.js';
export const foo = 1;
export const bar = 2;
```
Prettier actually needs this (currently using an esbuild plugin)
github.com/prettier/pre...
It also works in browsers, but I think it's reasonable.
Is self-import allowed in ESM?
```
>cat test.js
export const hello = "it works!";
import { hello as importedHello } from "./test.js";
console.log({
hello,
importedHello,
});
>node test.js
{ hello: 'it works!', importedHello: 'it works!' }
```
github.com/nodejs/node/...
FYI: `() => undefined` is allowed under `checkArrowFunctionBody` option github.com/sindresorhus...
Are you saying the override doesn't work anymore? That's unexpected.
This change was made in v3.2.5, which version did you use before v3.6? github.com/prettier/pre...