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