Reference

Report reasons

Every reason code in the report, by pass, with what it means.

TypeScript
interface Skip {
  readonly pass: 'inline' | 'contexts' | 'memos';
  readonly reason: string;
  readonly name: string;
}

skip.pass is 'inline', 'contexts' for the provider pass, or 'memos'. skip.reason is one of the codes below, and skip.name is the component, context, or memo. Tables are by pass, then by the order the pass checks. See Find out why a component stays for how to read them.

Inline pass#

ReasonMeaning
props-use, view-useThe component uses its props in a way other than props.name, a spread onto an element, or a merge() or omit() view, such as passing them to a function.
view-conflictA spread of the props would repeat an attribute the element already has.
component-params, component-body, component-return, component-directive, component-async, component-recursive, component-thisThe component's own shape is not supported: more than one parameter, a body that does not end in its only return of JSX, a directive like 'use strict', an async or generator function, a call of itself, or a use of this or arguments.
component-mutatedSomething assigns to the component's name after its declaration.
component-writeThe component's statements assign to something declared outside it, like a counter at the top of the module. A copy's statements run before the JSX around the call, so that JSX would see the write too early.
call-spread, call-namespace, call-duplicateThe call site passes a spread, a namespaced attribute, or the same attribute twice.
call-childrenThe call site passes both a children attribute and children between its tags.
call-thisAn attribute or a child at the call site uses this or arguments, which would mean something else inside the copy.
call-ref, ref-useThe call's ref is an expression other than a name, a function, or an array of them, or the component uses props.ref other than as a ref.
prop-valueA prop's value cannot take the place of the component's reads of it.
shadowedA name the component reads from its module is declared again around the call, so the copy would read the wrong binding.
no-hostThe component has statements, and the call is not in JSX that a component or one of Solid's callbacks returns. A <Show> child or a fallback is one such place.
fragment-textThe component returns a fragment that starts or ends with text, and the call sits among an element's children. Spliced there, the text would join the text around the call and render differently.
context-valueThe component reads a context that a removed provider answers, and the read cannot take the provider's value at the call.
sizeThe copies would be larger than the calls. See Only where it is smaller.
lazy, not-a-function, imported, nested, global, member-tagThe tag is not a component declared at the top of the same module or chunk: a lazy() component, a binding that is not a function, an import, a component declared inside a function, a global, or a tag like <Menu.Item> that is not a known compound component.

Copies from other modules#

The Vite plugin reports these with the pass 'inline'.

ReasonMeaning
copy-external, copy-packageThe component's module is external to the bundle, or is in a package that optimizer.packages does not list.
copy-not-jsxThe component's module is not one the official plugin lowers.
copy-cycleThe component's module imports the importer back, directly or through other modules.
copy-shapeThe export is not a component the inline pass can read.
copy-wrapperThe component only returns a call of another component in its module.
copy-virtualThe copy would import a virtual module that its specifier does not reach from the importer.
copy-size, copy-no-host, copy-leftThe copy was made but did not inline. copy- comes before the inline reason, such as copy-size. copy-left means no reason was recorded.
missing-helperChunk mode: the chunk needs a runtime helper that no module in it imports, so the chunk is lowered as written. The build also prints a warning. See Errors.

Provider pass contexts#

ReasonMeaning
open-component, open-call, open-new, open-spread, open-outer, open-otherCode under the provider that the pass cannot see into: a component that does not inline, a call of an unknown function, new, a spread, another component's props, or anything else that could read the context.
provider-nestedA provider of the same context sits under this one.
provider-valueA read cannot take the provider's value as written where it reads it.
provider-undefined, provider-shapeThe provider's value could be undefined, or the tag has attributes other than value.

Memo pass memos#

ReasonMeaning
memo-computation, memo-optionsThe memo's computation is not a function that returns one expression, or it has options other than { equals: false }.
memo-asyncA memo with equals: false may return a promise or an async iterable.
memo-reads, memo-read, memo-read-placeThe memo is read more than once, read other than as a call with no arguments, or read somewhere other than the whole of a tracked JSX expression.
memo-declarationThe declaration holds more than one binding, or is not inside a function.
memo-scopeA name the computation reads means something else at the read, or the computation uses this.
children-dynamicA children() helper whose computation returns something other than JSX.