Skip to content

Commit

Permalink
docs: small grammar change (#6609)
Browse files Browse the repository at this point in the history
Small grammar change

Small grammar fix in the $ symbol section about the optimizer.
  • Loading branch information
codyroberts authored Jun 26, 2024
1 parent 3a9ee62 commit a2661bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The `$` suffix is used to signal both the optimizer and the developer when this

## Compiler-time implications

[Optimizer](../optimizer/index.mdx) runs as a Vite plugin during bundling. The purpose of the Optimizer is to break up the application into many small lazy-loadable chunks. The Optimizer moves expressions (usually functions) into new files and leaves behind a reference pointing to where the expression was moved from.
The [optimizer](../optimizer/index.mdx) runs as a Vite plugin during bundling. The purpose of the Optimizer is to break up the application into many small lazy-loadable chunks. The Optimizer moves expressions (usually functions) into new files and leaves behind a reference pointing to where the expression was moved from.

The `$` tells the optimizer which functions to extract into a separate file and which ones to leave untouched. The optimizer does not keep an internal list of magic functions, instead, it solely relies on the `$` suffix to know which functions to transform. The system is extendable and developers can create their own `$` functions, such as `myCustomFunction$()`.

Expand Down

0 comments on commit a2661bd

Please sign in to comment.