rsnext/test/integration/worker-webpack5/lib/worker.js
Tim Neutkens 88ed5269b5
Add runtime to hotUpdateMainFilename (#26256)
Updates the hotUpdateChunk to include `[runtime]` for web workers support.

Fixes #26152
Fixes #19865
Fixes #26144

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.

## Documentation / Examples

- [ ] Make sure the linting passes
2021-06-18 17:12:20 +00:00

8 lines
206 B
JavaScript

import { Expensive } from './sharedCode'
import faker from 'faker'
// Ensure a large libraries is added so that splitChunks would trigger if enabled.
console.log(faker)
Expensive()
self.postMessage(true)