mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
12 lines
271 B
JavaScript
12 lines
271 B
JavaScript
Promise.all([
|
|
import('./module-and-worker'),
|
|
import('./modules/module2'),
|
|
import('./modules/module3'),
|
|
]).then((data) => {
|
|
const _data = { ...data[0], ...data[1], ...data[2] }
|
|
self.postMessage(_data)
|
|
})
|
|
|
|
// for sourcemap
|
|
console.log('emit-chunk-sub-worker.js')
|