perf: add `__NO_SIDE_EFFECTS__` comments (#9053)
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
This commit is contained in:
parent
a148b87e4b
commit
d46df6bdb1
|
@ -123,6 +123,7 @@ export const devtoolsComponentRemoved = (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*! #__NO_SIDE_EFFECTS__ */
|
||||||
function createDevtoolsComponentHook(hook: DevtoolsHooks) {
|
function createDevtoolsComponentHook(hook: DevtoolsHooks) {
|
||||||
return (component: ComponentInternalInstance) => {
|
return (component: ComponentInternalInstance) => {
|
||||||
emit(
|
emit(
|
||||||
|
|
|
@ -17,7 +17,7 @@ import {
|
||||||
} from '@vue/shared'
|
} from '@vue/shared'
|
||||||
|
|
||||||
// leading comma for empty string ""
|
// leading comma for empty string ""
|
||||||
const shouldIgnoreProp = makeMap(
|
const shouldIgnoreProp = /*#__PURE__*/ makeMap(
|
||||||
`,key,ref,innerHTML,textContent,ref_key,ref_for`,
|
`,key,ref,innerHTML,textContent,ref_key,ref_for`,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
* \/\*#\_\_PURE\_\_\*\/
|
* \/\*#\_\_PURE\_\_\*\/
|
||||||
* So that rollup can tree-shake them if necessary.
|
* So that rollup can tree-shake them if necessary.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*! #__NO_SIDE_EFFECTS__ */
|
||||||
export function makeMap(
|
export function makeMap(
|
||||||
str: string,
|
str: string,
|
||||||
expectsLowerCase?: boolean,
|
expectsLowerCase?: boolean,
|
||||||
|
|
Loading…
Reference in New Issue