s3xysteak / vite-plugin-cesium-build

A devDependencies used to automatically configure CesiumJS for development and build with Vite.
MIT License
18 stars 2 forks source link

Cesium Engine compatibility #6

Closed jfayot closed 7 months ago

jfayot commented 10 months ago

Hi s3xysteak ! Thanks for the plugin. That works well !

I was wondering if this would be a lot of work to get it compatible also with the @cesium/engine only ?

What do you think ?

s3xysteak commented 10 months ago

I haven't heard of @cesium/engine before, so it might take some time. It would be helpful if you could provide some documents that describe the differences between @cesium/engine and cesium, or a sample repository that uses @cesium/engine.

jfayot commented 10 months ago

Hi again, have a look here for a sample repo Thanks for your support !

jfayot commented 10 months ago

BTW, you will get some more information on @cesium/engine here...

s3xysteak commented 7 months ago

See line2. Use it just like examples in README.

import { defineConfig } from 'vite'
- import cesium from 'vite-plugin-cesium-build'
+ import cesium from 'vite-plugin-cesium-build/engine'

export default defineConfig({
  plugins: [
    //...
    cesium()
  ]
})