Skip to content

Fenced imports don't support aliases / as #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
brekk opened this issue Jun 17, 2024 · 1 comment
Open

Fenced imports don't support aliases / as #179

brekk opened this issue Jun 17, 2024 · 1 comment

Comments

@brekk
Copy link
Contributor

brekk commented Jun 17, 2024

Expectation: Aliased imports should work within the fence

Actual: Aliased imports aren't consistent

import IO from "IO"

#- import { delimiter as slash } from "node:path" -#

main = () => {
  IO.pTrace(">>>", #- slash -#)
  joined = #- "x" + slash + "a" -#
  IO.pTrace(">->", joined)
}

☝🏼 This prints:

>>> {}
>-> {}

Additionally in a different repo I have a more complicated use case where slash is inexplicably a : character

@brekk
Copy link
Contributor Author

brekk commented Jun 17, 2024

Correction, the original case where I was seeing : was working correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant