It seems to me that extension pages don’t yet work with importmaps,
despite Firefox itself supporting it, is this an error on my side?
The popup.html
<script type = 'importmap'>
{
"imports" : {
"StringColor" : "../STL/Visual/StringColor.js"
}
}
</script>
<script type = 'module' src = '../Scripts/Popup/App.js' defer></script>
App.js
import { hexFrom } from 'StringColor'
Considering that it’s giving me the
Uncaught TypeError: Error resolving module specifier “StringColor”. Relative module specifiers must start with “./”, “../” or “/”.
error message, it doesn’t seem to even acknowledge the importmap …