Skip to content

Conversation

@wojtekmaj
Copy link
Contributor

@wojtekmaj wojtekmaj commented Jul 16, 2024

Now that we use Vitest (#349), tests won't go crazy because of this change.

Because Corepack is bundled with esbuild, the correct, recommended tsconfig.json settings are:

  • module: preserve
  • moduleResolution: bundler

This ensures that modules are resolved the way esbuild resolves them, and enables us to use e.g. package.json exports (which will come in #533).

Because Corepack is bundled with esbuild, the correct, recommended tsconfig.json settings are:
- module: preserve
- moduleResolution: bundler

This ensures that modules are resolved the way esbuild resolves them, and opens us to using e.g. package.json exports (which will come in handy in the next PR in which I update tar dependency).
@aduh95 aduh95 merged commit 06e5872 into nodejs:main Jul 17, 2024
@wojtekmaj wojtekmaj deleted the proper-tsconfig branch July 17, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants