Open JounQin opened 6 months ago
A lot of await import in https://github.com/mdx-js/eslint-mdx/blob/3bdd2eb88244aeda636c11f3ccaff35ae2c05ac2/packages/eslint-mdx/src/worker.ts and the hack loadEsmModule
await import
loadEsmModule
https://github.com/mdx-js/eslint-mdx/blob/3bdd2eb88244aeda636c11f3ccaff35ae2c05ac2/packages/eslint-mdx/src/helpers.ts#L60-L64
is unnecessary.
Just change worker.ts to pure ESM worker.mts which is just supported by synckit natively.
worker.ts
worker.mts
N/A
Initial checklist
Problem
A lot of
await import
in https://github.com/mdx-js/eslint-mdx/blob/3bdd2eb88244aeda636c11f3ccaff35ae2c05ac2/packages/eslint-mdx/src/worker.ts and the hackloadEsmModule
https://github.com/mdx-js/eslint-mdx/blob/3bdd2eb88244aeda636c11f3ccaff35ae2c05ac2/packages/eslint-mdx/src/helpers.ts#L60-L64
is unnecessary.
Solution
Just change
worker.ts
to pure ESMworker.mts
which is just supported by synckit natively.Alternatives
N/A