( options: unknown, extraOptions?: ComponentOptions, )
| 303 | // implementation, close to no-op |
| 304 | /*@__NO_SIDE_EFFECTS__*/ |
| 305 | export function defineComponent( |
| 306 | options: unknown, |
| 307 | extraOptions?: ComponentOptions, |
| 308 | ) { |
| 309 | return isFunction(options) |
| 310 | ? // #8236: extend call and options.name access are considered side-effects |
| 311 | // by Rollup, so we have to wrap it in a pure-annotated IIFE. |
| 312 | /*@__PURE__*/ (() => |
| 313 | extend({ name: options.name }, extraOptions, { setup: options }))() |
| 314 | : options |
| 315 | } |