Menci / vite-plugin-top-level-await

Transform code to support top-level await in normal browsers for Vite.
MIT License
266 stars 15 forks source link

fix: parse ExportNamedDeclaration with source #46

Closed pedrotainha closed 2 months ago

pedrotainha commented 8 months ago

This PR fixes the parse of files that contain named exports directly from a source file.

closes #45

Menci commented 3 months ago

I added tests and fixed the transform logic. The export ... from statement should NOT be transformed to import { id } from and export { id }. We shouldn't occupy extra identifiers.

Could you please review my changes again?

Menci commented 2 months ago

Merging since no response.