chromeExtension() function is an alias for crx(). It provides the same functionality with a more descriptive name that clearly indicates its purpose for Chrome Extension development.
Signature
Usage
You can usechromeExtension() and crx() interchangeably:
vite.config.ts
Why Two Names?
The plugin was originally namedcrx() for brevity. The chromeExtension() alias was added to provide a more descriptive alternative that makes the plugin’s purpose immediately clear, especially for developers new to the ecosystem.
Choose whichever name you prefer:
See Also
- crx() - The main plugin function documentation