web icon indicating copy to clipboard operation
web copied to clipboard

question about packages/dev-server-import-maps

Open chriswang- opened this issue 1 year ago • 3 comments

I can not understand about this plugin's purpose, But strangely, when I used web-dev-server, my native HTML importmap function completely disappeared, so I was forced to install this plugin, and it worked, but when I opened the source code of the webpage, I was surprised to find below: import { render } from 'https://ga.jspm.io/npm:[email protected]/index.js?wds-import-map=0';

It is wrong, it should be: " import { render } from 'lit1'" I think my source code has been change with a wrong way by the plugin....

Could someone tell me what is might cause the problem , i just want the original HTML importmap funciton to work `

   

`

chriswang- avatar Jul 01 '24 21:07 chriswang-

I got an email notification with a suggestion to close this issue, but don't see anything in here. You can close it yourself as well if you figured how to solve it.

if not, please provide a repository with minimal reproduction of this and simple steps to run and see this behavior.

bashmish avatar Jul 02 '24 18:07 bashmish

importmap-test.zip This is the simplest code, importmap does not work

chriswang- avatar Jul 02 '24 20:07 chriswang-

@bashmish Why does web-dev-server block the configuration of HTML importmap and make it not work? In addition, you provide the plugin dev-server-import-maps, and the processing mechanism of this plugin is also problematic, so I would like to ask, how can I make HTML importmap work properly?

chriswang- avatar Jul 11 '24 08:07 chriswang-