pugjs/pug

New script import syntax can't be generated in a pug page.

cekvenich2 opened this issue · 1 comments

<script type="importmap">
	{
		"imports": {
			"d-comp": "/_includes/d-comp/d-comp.mjs"
		}
	}
</script>
Just typing in valid html above does not work. And pug syntax does not work. Error


Error: /opt/licsrv/_web/public/_includes/_head.pug:34:2
    32| 
    33| <script type='importmap'>
  > 34|         { "imports": { "d-comp": "/_includes/d-comp/d-comp.mjs" }
---------^
    35|         }
    36| </script>

unexpected text "{ "im"


Also this does not work if using pug
  script(type='importmap').
    {
    "imports": {
    "d-comp": "/_includes/d-comp/d-comp.mjs"
    }
    }


Using express js w/ latest pug 3.0.2
``

never mind