Skip to content

Commit 3882110

Browse files
committed
fix: tweak /* #__NO_SIDE_EFFECTS__ */
1 parent ab9eafb commit 3882110

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

packages/core-base/src/compilation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ function baseCompile(
5252
return { ...baseCompileCore(message, options), detectError }
5353
}
5454

55-
export const compileToFunction = /* #__NO_SIDE_EFFECTS__ */ <
55+
/* #__NO_SIDE_EFFECTS__ */
56+
export const compileToFunction = <
5657
Message = string,
5758
MessageSource = string | ResourceNode
5859
>(

packages/core-base/src/context.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,14 +414,13 @@ export function registerLocaleFallbacker(fallbacker: LocaleFallbacker): void {
414414
// Additional Meta for Intlify DevTools
415415
let _additionalMeta: MetaInfo | null = /* #__PURE__*/ null
416416

417-
export const setAdditionalMeta = /* #__NO_SIDE_EFFECTS__ */ (
418-
meta: MetaInfo | null
419-
): void => {
417+
/* #__NO_SIDE_EFFECTS__ */
418+
export const setAdditionalMeta = (meta: MetaInfo | null): void => {
420419
_additionalMeta = meta
421420
}
422421

423-
export const getAdditionalMeta =
424-
/* #__NO_SIDE_EFFECTS__ */ (): MetaInfo | null => _additionalMeta
422+
/* #__NO_SIDE_EFFECTS__ */
423+
export const getAdditionalMeta = (): MetaInfo | null => _additionalMeta
425424

426425
let _fallbackContext: CoreContext | null = null
427426

packages/vue-i18n-core/src/composer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,8 @@ function defineCoreMissingHandler(missing: MissingHandler): CoreMissingHandler {
17791779
}
17801780

17811781
// for Intlify DevTools
1782-
const getMetaInfo = /* #__NO_SIDE_EFFECTS__ */ (): MetaInfo | null => {
1782+
/* #__NO_SIDE_EFFECTS__ */
1783+
const getMetaInfo = (): MetaInfo | null => {
17831784
const instance = getCurrentInstance()
17841785
let meta: any = null // eslint-disable-line @typescript-eslint/no-explicit-any
17851786
return instance && (meta = getComponentOptions(instance)[DEVTOOLS_META])

packages/vue-i18n-core/src/i18n.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,8 @@ export function useI18n<
950950
*
951951
* @VueI18nGeneral
952952
*/
953-
export const castToVueI18n = /* #__NO_SIDE_EFFECTS__ */ (
953+
/* #__NO_SIDE_EFFECTS__ */
954+
export const castToVueI18n = (
954955
i18n: I18n
955956
// eslint-disable-next-line @typescript-eslint/no-explicit-any
956957
): VueI18n & { install: (Vue: any, options?: any) => void } => {

0 commit comments

Comments
 (0)