Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants