-
Notifications
You must be signed in to change notification settings - Fork 45
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
Dealing with JSON imports #54
Comments
Yep same here |
Any improvement going on? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was hoping to use
etsc
as a drop-in replacement fortsc
, but the blocker I've run into is that our project hasresolveJsonModule: true
and imports.json
files, which are not handled well.As it stands, the transpiled files in
dist
refer to a non-existent./whatever.json
. Digging throughtsc
'sgetFileNames()
, I noticed I could set"include": ["src", "src/**/*.json"]
intsconfig.json
to force.json
files to be processed, although then esbuild outputswhatever.js
, which is still broken. Maybe I could copy.json
files intodist
in the postbuild hook like non-TypeScript assets, but it seems like I shouldn't have to, especially whentsc
doesn't require that.So, is the non-handling of imported
.json
files a bug? If not, what's the recommended way to get it working?The text was updated successfully, but these errors were encountered: