Skip to content

Commit 26bce3d

Browse files
authored
chore: update side effect annotations to use standardized format (#13839)
1 parent 842a392 commit 26bce3d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

packages/runtime-core/src/apiAsyncComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface AsyncComponentOptions<T = any> {
4343
export const isAsyncWrapper = (i: ComponentInternalInstance | VNode): boolean =>
4444
!!(i.type as ComponentOptions).__asyncLoader
4545

46-
/*! #__NO_SIDE_EFFECTS__ */
46+
/*@__NO_SIDE_EFFECTS__*/
4747
export function defineAsyncComponent<
4848
T extends Component = { new (): ComponentPublicInstance },
4949
>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T {

packages/runtime-core/src/apiDefineComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ export function defineComponent<
301301
>
302302

303303
// implementation, close to no-op
304-
/*! #__NO_SIDE_EFFECTS__ */
304+
/*@__NO_SIDE_EFFECTS__*/
305305
export function defineComponent(
306306
options: unknown,
307307
extraOptions?: ComponentOptions,

packages/runtime-core/src/devtools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export const devtoolsComponentRemoved = (
125125

126126
type DevtoolsComponentHook = (component: ComponentInternalInstance) => void
127127

128-
/*! #__NO_SIDE_EFFECTS__ */
128+
/*@__NO_SIDE_EFFECTS__*/
129129
function createDevtoolsComponentHook(
130130
hook: DevtoolsHooks,
131131
): DevtoolsComponentHook {

packages/runtime-dom/src/apiCustomElement.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export function defineCustomElement<
163163
T extends DefineComponent<infer P, any, any, any> ? P : unknown
164164
>
165165

166-
/*! #__NO_SIDE_EFFECTS__ */
166+
/*@__NO_SIDE_EFFECTS__*/
167167
export function defineCustomElement(
168168
options: any,
169169
extraOptions?: ComponentOptions,
@@ -184,7 +184,7 @@ export function defineCustomElement(
184184
return VueCustomElement
185185
}
186186

187-
/*! #__NO_SIDE_EFFECTS__ */
187+
/*@__NO_SIDE_EFFECTS__*/
188188
export const defineSSRCustomElement = ((
189189
options: any,
190190
extraOptions?: ComponentOptions,

packages/shared/src/makeMap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* So that rollup can tree-shake them if necessary.
77
*/
88

9-
/*! #__NO_SIDE_EFFECTS__ */
9+
/*@__NO_SIDE_EFFECTS__*/
1010
export function makeMap(str: string): (key: string) => boolean {
1111
const map = Object.create(null)
1212
for (const key of str.split(',')) map[key] = 1

0 commit comments

Comments
 (0)