Vite plugin for collecting and bundling entry points from TYPO3 extensions in a Composer-based TYPO3 setup. Version 3.0.0 adds support for Vite 8, drops CommonJS (ESM-only), and requires vite_asset_collector v1.16.0+. Provides automatic alias creation (EXT:/@), CORS defaults, and watcher ignore lists. Flexible configuration for project or extension mode. Actively maintained with monthly releases.
npm install vite-plugin-typo3Verified import paths — ran on the pinned version, not inferred.
Minimal vite.config setup that integrates TYPO3 extension entry points. Requires EXT:my_extension/Configuration/ViteEntrypoints.json for actual entry collection.
Use ESM imports (import typo3 from 'vite-plugin-typo3').
Update vite_asset_collector TYPO3 extension to v1.16.0 and update Vite to ^7.0 || ^8.0.
Add custom origins via server.cors.origin using getDefaultAllowedOrigins() as a base.
Place the JSON file at EXT:my_extension/Configuration/ViteEntrypoints.json or set custom path via entrypointFile option.
Ensure TYPO3 extension has proper composer.json in its root.
Update Vite to ^7.0 (or ^8.0) which is the peer dependency for v3.
Run 'npm install --save-dev vite-plugin-typo3' and ensure your project root contains node_modules.
Use ESM in your config file (e.g., .mjs or type: module) and ensure v3.0.0+.