when build with vite2, <div src="xxx/index.js", id="upgrade-me"/> will error with can not use import in no-module script.