-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Open
Milestone
Description
Description
Currently there are multiple config loaders: #20162
Each option has its own downsides and upsides.
Suggested solution
We think --configLoader=native is the least confusing one and plan to default to that.
This will also solve #5370.
Alternative
No response
Additional context
To the ease the migration, our plan is to:
- Set
moduleResolution: 'nodenext' in tsconfig.node.json of create-vite (erasableSyntaxOnly: true is already set). - Finish feat: track dependencies when loading config with native #19374
- Add runtime warnings to configs with
__dirname / __filename, extension-less imports. Update docs to recommend moduleResolution: 'nodenext' + erasableSyntaxOnly: true for configs. - (Vite 9) Default to
--configLoader native. Deprecate other config loaders. - (Vite 10) Remove other config loaders and
--configLoader flag.
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels