diff --git a/README.md b/README.md index 59360c5..9ea98fd 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,13 @@ import './css/main.css'; const viewer = new Viewer('cesiumContainer'); ``` +> or if you like global Cesium object you can write as + +```js +import * as Cesium from 'cesium'; +const viewer = new Cesium.Viewer('cesiumContainer'); +``` + `index.html` ```html @@ -121,6 +128,9 @@ Run `yarn dev` For full demo project please check [./demo](https://github.com/nshen/vite-plugin-cesium/tree/main/demo) folder. +## + + ## License MIT