ThatOpen / web-ifc-three

The official IFC Loader for Three.js.
https://ifcjs.github.io/info/
MIT License
511 stars 132 forks source link

Implement UMD support #143

Closed jespa007 closed 1 year ago

jespa007 commented 1 year ago

I've added an option in the config\rollup.config.js to generate umd file/s in dist directory

Building it works as expected,

image

And additional files *.umd.cjs are placed

image

Has been attached a complete example loading IFCLoader as UMD

example-umd-support.zip

In the canvas the model and IFCLoader.umd.cjs are loaded correctly,

image

image