File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 107
107
108
108
# Stores VSCode versions used for testing VSCode extensions
109
109
.vscode-test
110
-
110
+ basepc
111
111
# yarn v2
112
112
.yarn /cache
113
113
.yarn /unplugged
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ function initWorker() {
33
33
// use for webpack5+ or vite
34
34
const isViteEnvironment = import . meta. url . includes ( '.vite/deps' ) ;
35
35
const isNuxtEnvironment = import . meta. url . includes ( '_nuxt/node_modules' ) ;
36
+ const isQuasarEnvironment = import . meta. url . includes ( '.q-cache' ) ;
36
37
const isSupportModuleWorker = supportsModuleWorkers ( ) ;
37
-
38
38
let workerUrl = isSupportModuleWorker
39
39
? new URL ( 'worker.js' , import . meta. url )
40
40
: new URL ( 'worker-legacy.js' , import . meta. url ) ;
@@ -50,6 +50,12 @@ function initWorker() {
50
50
'@openim/wasm-client-sdk/lib'
51
51
) as unknown as URL ;
52
52
}
53
+ if ( isQuasarEnvironment ) {
54
+ workerUrl = workerUrl . href . replace (
55
+ / \. q - c a c h e \/ d e v - s p a \/ [ ^ / ] + \/ d e p s / ,
56
+ '@openim/wasm-client-sdk/lib'
57
+ ) as unknown as URL ;
58
+ }
53
59
worker = new Worker ( workerUrl , {
54
60
type : isSupportModuleWorker ? 'module' : 'classic' ,
55
61
} ) ;
You can’t perform that action at this time.
0 commit comments