feat(schema): default to bundler module resolution (#24837)

This commit is contained in:
Daniel Roe 2024-01-18 10:37:24 +00:00 committed by GitHub
parent 8e4905c2fe
commit 64c5f97d4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,8 @@ export default defineUntypedSchema({
* *
* It improves type support when using modern libraries with `exports`. * It improves type support when using modern libraries with `exports`.
* *
* You can set it to false to use the legacy 'Node' mode, which is the default for TypeScript.
*
* See https://github.com/microsoft/TypeScript/pull/51669 * See https://github.com/microsoft/TypeScript/pull/51669
*/ */
typescriptBundlerResolution: { typescriptBundlerResolution: {
@ -23,7 +25,7 @@ export default defineUntypedSchema({
if (setting) { if (setting) {
return setting.toLowerCase() === 'bundler' return setting.toLowerCase() === 'bundler'
} }
return false return true
} }
}, },
}, },