教程原文:https://www.cnblogs.com/LiZiheng/p/16295263.html
安装依赖 vite-plugin-cesium
https://github.com/nshen/vite-plugin-cesium/blob/main/src/index.tspnpm i vite-plugin-cesium cesium
vite.config.js
import { defineConfig } from 'vite' import cesium from 'vite-plugin-cesium' // https://vitejs.dev/config/ export default defineConfig({ plugins: [cesium()] })
main.js
import * as Cesium from 'cesium' export default Cesium
标签:集成,plugin,export,https,cesium,import,vite From: https://www.cnblogs.com/CyLee/p/16927090.html