Skip to content
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

import extension gets rewritten but wrong #1290

Closed
iacore opened this issue Jun 22, 2024 · 1 comment
Closed

import extension gets rewritten but wrong #1290

iacore opened this issue Jun 22, 2024 · 1 comment

Comments

@iacore
Copy link

iacore commented Jun 22, 2024

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
Copy link
Collaborator

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

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

2 participants