Skip to content

Commit

Permalink
Document sharedWorker option
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Feb 21, 2020
1 parent 09027dd commit 330f30b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -117,6 +117,14 @@ module.exports = {
}
```

### `sharedWorker` _(boolean)_

If set to `true`, this option enables the bundling of [SharedWorker](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker):

```js
const shared = new SharedWorker('./my-shared-worker.js', { type: 'module' });
```

### `preserveTypeModule` _(boolean)_
### `workerType` _(string)_

Expand Down

0 comments on commit 330f30b

Please sign in to comment.