Skip to content

Commit ab9eafb

Browse files
authored
chore: update (#1623)
1 parent b4ee8bd commit ab9eafb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/core-base/src/compilation.ts

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

55-
export const compileToFunction = /* #__PURE__*/ <
55+
export const compileToFunction = /* #__NO_SIDE_EFFECTS__ */ <
5656
Message = string,
5757
MessageSource = string | ResourceNode
5858
>(

packages/core-base/src/context.ts

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

417-
export const setAdditionalMeta = /* #__PURE__*/ (
417+
export const setAdditionalMeta = /* #__NO_SIDE_EFFECTS__ */ (
418418
meta: MetaInfo | null
419419
): void => {
420420
_additionalMeta = meta
421421
}
422422

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

426426
let _fallbackContext: CoreContext | null = null
427427

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

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

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

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

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

0 commit comments

Comments
 (0)