vite/playground/worker/url-worker.js
Senao 08d093cb7d
fix(worker): replace import.meta correctly for IIFE worker (#15321)
Co-authored-by: 翠 / green <green@sapphi.red>
2023-12-12 15:57:42 +01:00

13 lines
212 B
JavaScript

self.postMessage(
[
'A string',
import.meta.env.BASE_URL,
self.location.url,
import.meta && import.meta.url,
import.meta.url,
].join(' '),
)
// for sourcemap
console.log('url-worker.js')