File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,17 @@ interface VitePluginCesiumOptions {
1010 */
1111 rebuildCesium ?: boolean ;
1212 devMinifyCesium ?: boolean ;
13+ cesiumBuildRootPath ?: string ;
14+ cesiumBuildPath ?: string
1315}
1416
15- function vitePluginCesium (
16- options : VitePluginCesiumOptions = {
17- rebuildCesium : false ,
18- devMinifyCesium : false
19- }
20- ) : Plugin {
21- const { rebuildCesium, devMinifyCesium } = options ;
22-
23- const cesiumBuildRootPath = 'node_modules/cesium/Build' ;
24- const cesiumBuildPath = 'node_modules/cesium/Build/Cesium/' ;
17+ function vitePluginCesium ( options : VitePluginCesiumOptions = { } ) : Plugin {
18+ const {
19+ rebuildCesium = false ,
20+ devMinifyCesium = false ,
21+ cesiumBuildRootPath = 'node_modules/cesium/Build' ,
22+ cesiumBuildPath = 'node_modules/cesium/Build/Cesium/'
23+ } = options ;
2524
2625 let CESIUM_BASE_URL = 'cesium/' ;
2726 let outDir = 'dist' ;
You can’t perform that action at this time.
0 commit comments