DanielXMoore / Civet

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

import extension gets rewritten but wrong #1290

Closed iacore closed 1 week ago

iacore commented 1 week 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 1 week 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