Skip to content

Commit

Permalink
fix: augment runtime config correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 11, 2024
1 parent e755e35 commit 2d199b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/devtools/src/module-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ export async function enableModule(options: ModuleOptions, nuxt: Nuxt) {

await nuxt.callHook('devtools:before')

if (options.iframeProps)
nuxt.options.runtimeConfig.app.iframeProps = options.iframeProps
if (options.iframeProps) {
nuxt.options.runtimeConfig.app.devtools ||= {}
nuxt.options.runtimeConfig.app.devtools.iframeProps = options.iframeProps
}

// Make unimport exposing more information, like the usage of each auto imported function
nuxt.options.imports.collectMeta = true
Expand Down

0 comments on commit 2d199b8

Please sign in to comment.