Skip to content

Commit

Permalink
fix: normalise sourcemap option to boolean (#2344)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Aug 25, 2023
1 parent f869292 commit cd9c3de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ export async function extendBundler(

// extract macros from components
const macroOptions: TransformMacroPluginOptions = {
sourcemap: nuxt.options.sourcemap.server || nuxt.options.sourcemap.client
sourcemap: !!nuxt.options.sourcemap.server || !!nuxt.options.sourcemap.client
}

const resourceOptions: ResourcePluginOptions = {
sourcemap: nuxt.options.sourcemap.server || nuxt.options.sourcemap.client
sourcemap: !!nuxt.options.sourcemap.server || !!nuxt.options.sourcemap.client
}

/**
Expand Down

0 comments on commit cd9c3de

Please sign in to comment.