mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
9 lines
165 B
JavaScript
9 lines
165 B
JavaScript
self.onmessage = (event) => {
|
|
if (event.data === 'ping') {
|
|
self.postMessage(`pong ${self.location.href}`)
|
|
}
|
|
}
|
|
|
|
// for sourcemap
|
|
console.log('sub-worker.js')
|