tsconfig.json support?
See original GitHub issueHi there!
Thanks for the helpful plugin!
I’m trying to integrate esbuild into rollup using your plugin and it seems that it doesn’t support tsconfig.json completely?
At least it doesn’t respect compilerOptions.baseUrl
and compilerOptions.paths
.
These are path aliases which allow to write
import '@alias/module'
instead of
import `../../../../../../../../some-folder/module`
(well, I think you know, but just for clarity 😃 ) And as far as I know esbuild itself supports these options (https://github.com/evanw/esbuild/issues/60 and https://github.com/evanw/esbuild/issues/38#issuecomment-639784830).
Or maybe I missed something?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:16
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Documentation - What is a tsconfig.json - TypeScript
See our full list of supported Compiler Options. TSConfig Reference. To learn more about the hundreds of configuration options in the TSConfig Reference....
Read more >tsconfig.json - TypeScript Deep Dive - Gitbook
Good IDEs come with built in support for on the fly ts to js compilation. However, if you want to run the TypeScript...
Read more >tsconfig.json - TypeScript - JavaScript that scales.
The tsconfig.json file specifies the root files and the compiler options required to ... Example tsconfig.json files: ... The supported glob wildcards are:....
Read more >tsconfig.json demystified - understanding the tsc compiler
To help you build up your tsconfig.json files for new projects, ... Modern browsers support all ES6 features, so leaving target at ES6...
Read more >TypeScript configuration - Angular
It is a superset of JavaScript with design-time support for type safety and ... At the root tsconfig.json file specifies the base TypeScript...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
found a workaround using @rollup/plugin-alias
The solution is to use
@rollup/plugin-alias
as @ycnmhd said, there’s also alias-hq (by @davestewart) to reduce boilerplate code.