Open arv opened 1 year ago
Hey @arv! I think we need to update TypeScript before we can set moduleResolution: 'node16'
. I'm not sure what release it was introduced in, but I'm getting an error when I'm trying to change the setting right now. We probably need to wait for #2032 to land first.
It looks like
@web/dev-server-esbuild
does not work when themoduleResolution
is set tonode16
intsconfig.json
Here is a sample repo:
https://github.com/arv/test-web-dev-server-tsconfig-module-resolution-node16
And here is the output again:
It seems to me like the thing that needs to happen is to start using file extensions on the imports.
One way to ensure this is working is to start using
moduleResolution
node16
in this repo.