-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
- Update the
exportsfield inpackage.jsonso the default import (@total-typescript/tsconfig) points to./bundler/dom.json. - Update the
README.mdto clarify that the default import is now the bundler DOM app config.
Proposed Changes
package.json
- Add or update the entry in
exports:".": "./bundler/dom.json"
README.md
- Add a section under Default Import to explain that
@total-typescript/tsconfignow points tobundler/dom.json, and provide a usage example. - Clarify that this is equivalent to extending
@total-typescript/tsconfig/bundler/dom/app.
See below for the suggested file changes:
{
...
"exports": {
".": "./bundler/dom.json",
...
}
}## Default Import
The default import of `@total-typescript/tsconfig` now points to the **bundler DOM app config** (`bundler/dom.json`). This is optimized for apps running in the DOM using an external bundler (like Vite, Remix, Astro, etc.).
For most users, you can now simply use:
```jsonc
{
"extends": "@total-typescript/tsconfig"
}
```
This is equivalent to:
```jsonc
{
"extends": "@total-typescript/tsconfig/bundler/dom/app"
}
```Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request