Skip to content

Commit

Permalink
fix(dom-to-code): 修复 webpack4 文件路径解析问题
Browse files Browse the repository at this point in the history
  • Loading branch information
2214962083 committed Oct 23, 2022
1 parent 1eb28ad commit 0320ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dom-to-code/src/core/transform/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function parseVueRequest(id: string) {
// 文件全路径
const [filename] = id.split('?', 2)

const url = new URL(id)
const url = new URL(id, 'http://domain.inspector')

// vite 的 query 参数
const query = Object.fromEntries(url.searchParams.entries()) as VueQuery
Expand Down

0 comments on commit 0320ee0

Please sign in to comment.