Vite plugin to integrate CesiumJS into Vite projects. It automatically serves CesiumJS static assets and provides a seamless development experience. Current stable version is 4.1.3. It works with Vite >=5.0.0 and supports TypeScript. Key differentiators: easy setup, configurable Cesium URL and output directory, optionally unminified code for debugging. Released on npm with regular updates.
npm install vite-plugin-cesiumjsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Set up Vite with CesiumJS using the plugin, configuring custom URL and output directory.
Upgrade Vite to 5.0.0 or later.
Use default import: import Cesiumjs from 'vite-plugin-cesiumjs'.
Set url and outDir properly to match your deployment path.
Only enable unminified for debugging; remove in production.
Check permissions and disk space.
Install with npm i vite-plugin-cesiumjs -D and use ESM import.
Change to: import Cesiumjs from 'vite-plugin-cesiumjs'
Upgrade Vite to 5.0.0 or later.