mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-19 16:01:24 +00:00
fix(nuxt): check resolved options for polyfills (#31307)
This commit is contained in:
parent
74314a1780
commit
3f8bd5629b
@ -36,7 +36,7 @@ export default defineNuxtModule<Partial<ImportsOptions>>({
|
||||
// TODO: fix sharing of defaults between invocations of modules
|
||||
const presets = JSON.parse(JSON.stringify(options.presets)) as ImportPresetWithDeprecation[]
|
||||
|
||||
if (nuxt.options.imports.polyfills) {
|
||||
if (options.polyfills) {
|
||||
presets.push(...appCompatPresets)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user