mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +00:00
feat(schema): default to bundler
module resolution (#24837)
This commit is contained in:
parent
8e4905c2fe
commit
64c5f97d4a
@ -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
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user