-
-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: adjust /* #__PURE__*/
comment timing
#1623
Conversation
packages/core-base/src/context.ts
Outdated
export const setAdditionalMeta = /* #__PURE__*/ ( | ||
meta: MetaInfo | null | ||
): void => { | ||
export const setAdditionalMeta = (meta: MetaInfo | null): void => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we swap to /* #__NO_SIDE_EFFECTS__ */
, not remove /* #__PURE__ */
see the #1599 (comment)
ref: https://github.com/javascript-compiler-hints/compiler-notations-spec/blob/main/no-side-effects-notation-spec.md
@@ -52,7 +52,7 @@ function baseCompile( | |||
return { ...baseCompileCore(message, options), detectError } | |||
} | |||
|
|||
export const compileToFunction = /* #__PURE__*/ < | |||
export const compileToFunction = < |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same #1623 (review)
packages/core-base/src/context.ts
Outdated
_additionalMeta = meta | ||
} | ||
|
||
export const getAdditionalMeta = /* #__PURE__*/ (): MetaInfo | null => | ||
_additionalMeta | ||
export const getAdditionalMeta = (): MetaInfo | null => _additionalMeta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same #1623 (review)
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done!
Thanks!
No description provided.