Vite 处理静态文件
url
json
raw
worker / worker line
webassembly
...
url
import testUrl from './test?url'
console.log(testUrl,'~~~'); // /src/test.ts ~~~
json
import {version} from '../package.json'
console.log(version,'i am version~~~'); // 0.0.0 i am version~~~