Skip to content

Commit

Permalink
fix: rollup comment annotation warning (#2723)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede committed Jan 30, 2024
1 parent 59f6a72 commit 545ad1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform/macros.ts
Expand Up @@ -61,7 +61,7 @@ export const TransformMacroPlugin = createUnplugin((options: TransformMacroPlugi
const match = code.match(new RegExp(`\\b${NUXT_I18N_COMPOSABLE_DEFINE_ROUTE}\\s*\\(\\s*`))
if (match?.[0]) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
s.overwrite(match.index!, match.index! + match[0].length, `/*#__PURE__*/ false && ${match[0]}`)
s.overwrite(match.index!, match.index! + match[0].length, `false && /*#__PURE__*/ ${match[0]}`)
}

if (!parseQuery(search).macro) {
Expand Down

0 comments on commit 545ad1d

Please sign in to comment.