-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support tsconfigRaw in build #943
Comments
I think this is a duplicate of #923. I'm keeping that issue open until I document the supported |
will you support rawtsconfig in build? |
@evanw we want to fully control what user set in tsconfig.json(like what babel does when babelrc set to false https://babeljs.io/docs/en/options#babelrc), are you going to support this feature? |
Ah set of supported For the build API, you can use the |
Why not |
@hardfist I would also like this feature but resolving baseUrl/paths needs a filesystem. During the resolution stage, esbuild is interacting with the filesystem to determine how import paths should be resolved. For example, given a path mapping @evanw Looking through the issues there seems to be interest for resolving virtual modules by people using the WASM version of esbuild. It's fairly painful re-implementing and maintaining tsconfig baseUrl/path resolution and ESM/CJS module resolution from scratch within plugins. Is there any possibility of piggy-backing on esbuild's built-in resolution mechanics? I suspect the answer is no, but, for example, could some callbacks be provided to proxy interactions with the filesystem? Eg:
|
since esbuild only follows a subset of typescript config, it may help to list the supported typescript compiler options like what @babel/plugin-transform-typescript does, https://babeljs.io/docs/en/babel-plugin-transform-typescript#typescript-compiler-options,
and it seems that
tsconfigRaw
only supports in transform, why not supports it in build ?The text was updated successfully, but these errors were encountered: