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

This commit is contained in:
Daniel Roe 2023-12-19 16:02:28 +01:00
parent 160208009e
commit bdf8dcc70a
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -12,6 +12,8 @@ export default defineUntypedSchema({
*
* 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
*/
typescriptBundlerResolution: {
@ -23,7 +25,7 @@ export default defineUntypedSchema({
if (setting) {
return setting.toLowerCase() === 'bundler'
}
return false
return true
}
},
},