DanielXMoore / Civet

A TypeScript superset that favors more types and less typing
https://civet.dev
MIT License
1.55k stars 33 forks source link

import extension gets rewritten but wrong #1290

Closed iacore closed 5 months ago

iacore commented 5 months ago

civet -h says

By default, .civet imports get rewritten to use the output extension.

i don't see this happening.

❯ civet -c -o .ts init.civet
❯ head init.civet
import './gopher.ts'
❯ head init.ts
import './gopher.js'
edemaine commented 5 months ago

Your example is a .ts import, not a .civet import. That's getting rewritten by a different rule; see https://civet.dev/config#import-options