mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
10 lines
224 B
JavaScript
10 lines
224 B
JavaScript
importScripts(`/${self.location.pathname.split('/')[1]}/classic.js`)
|
|
|
|
self.onconnect = (event) => {
|
|
const port = event.ports[0]
|
|
port.postMessage(self.constant)
|
|
}
|
|
|
|
// for sourcemap
|
|
console.log('classic-shared-worker.js')
|