1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Fix typings

This commit is contained in:
Jan Hartmann
2022-05-24 10:20:36 +04:00
committed by GitHub
parent d65c886291
commit d26351f1bf

View File

@@ -14,15 +14,13 @@ interface VitePluginCesiumOptions {
cesiumBuildPath?: string
}
function vitePluginCesium(
options: VitePluginCesiumOptions = {
rebuildCesium: false,
devMinifyCesium: false,
cesiumBuildRootPath: 'node_modules/cesium/Build',
cesiumBuildPath: 'node_modules/cesium/Build/Cesium/'
}
): Plugin {
const { rebuildCesium, devMinifyCesium, cesiumBuildRootPath, cesiumBuildPath } = options;
function vitePluginCesium(options: VitePluginCesiumOptions): Plugin {
const {
rebuildCesium = false,
devMinifyCesium = false,
cesiumBuildRootPath = 'node_modules/cesium/Build',
cesiumBuildPath = 'node_modules/cesium/Build/Cesium/'
} = options;
let CESIUM_BASE_URL = 'cesium/';
let outDir = 'dist';