Skip to content

Commit 4868df8

Browse files
authored
feat: vue hmr (#3638)
1 parent 8b3f9d0 commit 4868df8

File tree

1 file changed

+6
-0
lines changed
  • packages/chrome-devtools/src/utils/sdk

1 file changed

+6
-0
lines changed

packages/chrome-devtools/src/utils/sdk/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ export const getUnpkgUrl = (pkg: string, version: string) => {
4141
return `https://unpkg.com/react@${version}/umd/react.development.js`;
4242
} else if (pkg === 'react-dom') {
4343
return `https://unpkg.com/react-dom@${version}/umd/react-dom.development.js`;
44+
} else if (pkg === 'vue') {
45+
if ((version || '').split('.')[0] === '3') {
46+
return `https://unpkg.com/vue@${version}/dist/vue.global.js`;
47+
} else {
48+
return `https://unpkg.com/vue@${version}/dist/vue.common.dev.js`;
49+
}
4450
}
4551
};
4652

0 commit comments

Comments
 (0)