Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/runtime-core/src/apiAsyncComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface AsyncComponentOptions<T = any> {
export const isAsyncWrapper = (i: ComponentInternalInstance | VNode): boolean =>
!!(i.type as ComponentOptions).__asyncLoader

/*! #__NO_SIDE_EFFECTS__ */
/*@__NO_SIDE_EFFECTS__*/
export function defineAsyncComponent<
T extends Component = { new (): ComponentPublicInstance },
>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T {
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-core/src/apiDefineComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export function defineComponent<
>

// implementation, close to no-op
/*! #__NO_SIDE_EFFECTS__ */
/*@__NO_SIDE_EFFECTS__*/
export function defineComponent(
options: unknown,
extraOptions?: ComponentOptions,
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-core/src/devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const devtoolsComponentRemoved = (

type DevtoolsComponentHook = (component: ComponentInternalInstance) => void

/*! #__NO_SIDE_EFFECTS__ */
/*@__NO_SIDE_EFFECTS__*/
function createDevtoolsComponentHook(
hook: DevtoolsHooks,
): DevtoolsComponentHook {
Expand Down
4 changes: 2 additions & 2 deletions packages/runtime-dom/src/apiCustomElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function defineCustomElement<
T extends DefineComponent<infer P, any, any, any> ? P : unknown
>

/*! #__NO_SIDE_EFFECTS__ */
/*@__NO_SIDE_EFFECTS__*/
export function defineCustomElement(
options: any,
extraOptions?: ComponentOptions,
Expand All @@ -184,7 +184,7 @@ export function defineCustomElement(
return VueCustomElement
}

/*! #__NO_SIDE_EFFECTS__ */
/*@__NO_SIDE_EFFECTS__*/
export const defineSSRCustomElement = ((
options: any,
extraOptions?: ComponentOptions,
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/makeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* So that rollup can tree-shake them if necessary.
*/

/*! #__NO_SIDE_EFFECTS__ */
/*@__NO_SIDE_EFFECTS__*/
export function makeMap(str: string): (key: string) => boolean {
const map = Object.create(null)
for (const key of str.split(',')) map[key] = 1
Expand Down
Loading