modernweb-dev / web

Guides, tools and libraries for modern web development.
https://modern-web.dev
MIT License
2.15k stars 271 forks source link

question about packages/dev-server-import-maps #2763

Open chriswang- opened 3 days ago

chriswang- commented 3 days ago

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:lit@3.1.4/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 `

   

`

bashmish commented 2 days ago

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.

chriswang- commented 2 days ago

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