-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Running esbuild ./input.ts
in a workspace matching the following conditions fails with stack overflow error:
- The monorepo contains a root-level
tsconfig.json
. - That root-level
tsconfig.json
extends a sharedtsconfig.json
. - The shared
tsconfig.json
is exposed via the package.jsonexports
field. - The workspace has an independent
tsconfig.json
of its own
Notes
- workspace-level
tsconfig.json
files extending one of the shared configs work fine. The issue does not arise until there is a roottsconfig.json
and a workspacetsconfig.json
. - I have not tested if using a relative
extends
(example:../../tsconfig.json
) resolves the issue
Reproduction
- Clone https://github.com/sapphi-red-repros/esbuild-tsconfig-extends-repro
yarn install
yarn build
- Error happens
Additional info
If the extends
in the root tsconfig.json
is removed, no error happens.
If exports
is removed from the tsconfigs
package and "extends": "tsconfigs/configs/tsconfig.json",
is used instead for the tsconfig.json
in vite-demo
package and the root tsconfig.json
, no error happens.
Original issue: vitejs/vite#18094
Andrew67
Metadata
Metadata
Assignees
Labels
No labels