Skip to content

v0.10.1 - Unglobalization

Latest
Compare
Choose a tag to compare
@trusktr trusktr released this 24 Oct 07:46
· 3 commits to main since this release

BREAKING: remove the UMD global build lib/ folder, move module output from es/ to dist/, convert all our code to JavaScript modules

To migrate: use JavaScript modules, f.e. import AutoLayout from '@lume/autolayout'. If you have a web app and are not using a build system (f.e. Webpack, Vite, Rollup, or similar) that knows how to resolve the names of libraries (f.e. the '@lume/autolayout' in the import statement), then you need to use an importmap. See examples/DOM/index.html for a <script type="importmap"> example, and MDN web docs on import maps: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap