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

TS + ES Module paths #60

Open
lifeiscontent opened this issue Sep 12, 2021 · 1 comment
Open

TS + ES Module paths #60

lifeiscontent opened this issue Sep 12, 2021 · 1 comment

Comments

@lifeiscontent
Copy link

lifeiscontent commented Sep 12, 2021

is there a way to use swc + typescript to emit valid ES Module paths. e.g.

typescript source:

import foo from './foo';

output:

import foo from './foo.js';
@henaff
Copy link

henaff commented Jan 18, 2022

Hi, you can use tsc-alias just after swc run as with tsc
with option: "resolveFullPaths": true,

https://www.npmjs.com/package/tsc-alias

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

No branches or pull requests

2 participants