 type="module" src="dist/libredwg-web.js" defer></script>
    <script type="module" >
      import { Dwg_File_Type, LibreDwg } from './dist/libredwg-web.js'

      // load libredwg webassembly module
      const libredwg = await LibreDwg.create()

      document.getElementById('download-svg-btn').addEventListener('click', () => {
        const svg = document.querySelector('#svg-container svg');
        if (!svg) {
          alert('No SVG to download!')
          return
        }

        const serializer = 