Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
newives committed Nov 1, 2023
1 parent b4ee8bd commit 53735d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/core-base/src/compilation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function baseCompile(
return { ...baseCompileCore(message, options), detectError }
}

export const compileToFunction = /* #__PURE__*/ <
export const compileToFunction = /* #__NO_SIDE_EFFECTS__ */ <
Message = string,
MessageSource = string | ResourceNode
>(
Expand Down
6 changes: 3 additions & 3 deletions packages/core-base/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,14 +414,14 @@ export function registerLocaleFallbacker(fallbacker: LocaleFallbacker): void {
// Additional Meta for Intlify DevTools
let _additionalMeta: MetaInfo | null = /* #__PURE__*/ null

export const setAdditionalMeta = /* #__PURE__*/ (
export const setAdditionalMeta = /* #__NO_SIDE_EFFECTS__ */ (
meta: MetaInfo | null
): void => {
_additionalMeta = meta
}

export const getAdditionalMeta = /* #__PURE__*/ (): MetaInfo | null =>
_additionalMeta
export const getAdditionalMeta =
/* #__NO_SIDE_EFFECTS__ */ (): MetaInfo | null => _additionalMeta

let _fallbackContext: CoreContext | null = null

Expand Down
2 changes: 1 addition & 1 deletion packages/vue-i18n-core/src/composer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,7 @@ function defineCoreMissingHandler(missing: MissingHandler): CoreMissingHandler {
}

// for Intlify DevTools
const getMetaInfo = /* #__PURE__*/ (): MetaInfo | null => {
const getMetaInfo = /* #__NO_SIDE_EFFECTS__ */ (): MetaInfo | null => {
const instance = getCurrentInstance()
let meta: any = null // eslint-disable-line @typescript-eslint/no-explicit-any
return instance && (meta = getComponentOptions(instance)[DEVTOOLS_META])
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-i18n-core/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ export function useI18n<
*
* @VueI18nGeneral
*/
export const castToVueI18n = /* #__PURE__*/ (
export const castToVueI18n = /* #__NO_SIDE_EFFECTS__ */ (
i18n: I18n
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): VueI18n & { install: (Vue: any, options?: any) => void } => {
Expand Down

0 comments on commit 53735d9

Please sign in to comment.