Is your feature request related to a problem? Please describe
Latest versions of pdfjs are built as JavaScript modules (.mjs). When trying to load it with ui.script() I'm getting the following error Uncaught SyntaxError: Unexpected token 'export' (at pdf.min.mjs:4108:1).
Describe the solution you'd like
Add the type attribute to ui.script() and be able to specify type="module" attribute to HTML Githubissues.
Githubissues is a development platform for aggregating issues.
Is your feature request related to a problem? Please describe
Latest versions of
pdfjs
are built as JavaScript modules (.mjs
). When trying to load it withui.script()
I'm getting the following errorUncaught SyntaxError: Unexpected token 'export' (at pdf.min.mjs:4108:1)
.Describe the solution you'd like
Add the
type
attribute toui.script()
and be able to specifytype="module"
attribute to HTML Githubissues.