dojo / dojo/meta

Web Worker support for Dojo 2 Applications

Open
#190 1 comment 0 reactions 2 assignees Claimed by @agubler View on GitHub
enhancement
Dominant language
No language data
Stars
226
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Dojo 2 Applications should support the use of Web Workers where they are available with some sort of fallback to ensure the application is still isomorphic.

The `worker-loader` allow with a call to `require(worker-loader?....)`, but we want to avoid inline usage of loaders.

Kit:

> Also, if we do go with an approach like this, we should still find a better way to integrate it. We _can_ type plugins now with something like:

```ts
declare module 'worker-loader?*' {
export = /* ... */
}
```

>Would we not be able to create something that wrapped ES `import()` that we could also inject some feature detection, so the code was isomorphic on Node.js as well?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.