Skip to content

Webpack Worker#3

Open
robcmills wants to merge 14 commits into
masterfrom
webpack-worker
Open

Webpack Worker#3
robcmills wants to merge 14 commits into
masterfrom
webpack-worker

Conversation

@robcmills
Copy link
Copy Markdown
Owner

@robcmills robcmills commented Jun 21, 2020

Unfortunately CRA does not support web workers. Workers are integral and essential to the architecture of serverless magic, aka Hexproof.net
So this PR introduces our own custom webpack config to support them via workers-loader.
CRA was a good tool to bootstrap this project and get started, but now we are moving away from it in favor of rolling our own config.

robcmills added 14 commits May 24, 2020 12:58
commit 5305329
Author: Robert Mills <robcmills@gmail.com>
Date:   Sun May 24 12:36:31 2020 -0700

    Begine implementing action to download a bulk data object

    This commit surfaces the failure of an inline worker to import external
    modules, under the umbrella of CRA's webpack config. At this point it looks
    like we will have to either fork CRA or start rolling our own build config.

commit d599313
Author: Robert Mills <robcmills@gmail.com>
Date:   Mon May 18 21:52:03 2020 -0700

    Add basic proof of concept
This commit finally cobbles together a working POC that includes a worker
module written in typescript that can import other modules.
One example usage is implemented partially, the
downloadBulkDataObjectWorkerAction that kicks off a "worker job" to download
bulk data and hydrate it into indexedDB.
With progress actions dispatched back to main thread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant