Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline worker script for easier library usage #153

Open
eligrey opened this issue Oct 13, 2020 · 2 comments
Open

Inline worker script for easier library usage #153

eligrey opened this issue Oct 13, 2020 · 2 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed usability webpack webpack bundling

Comments

@eligrey
Copy link
Member

eligrey commented Oct 13, 2020

We should inline our worker script so that the entry bundle can instantiate penumbra workers without any external URL references.

We can do this by adding a build step to compile the worker script and expose this through process.env (or similar) for embedding by Webpack. This embedded minified worker script could be allocated to a Blob URI at runtime and used for worker instantiation.

@eligrey eligrey added help wanted Extra attention is needed good first issue Good for newcomers webpack webpack bundling usability labels Oct 13, 2020
@michaelfarrell76
Copy link
Member

@eligrey
Copy link
Member Author

eligrey commented Jan 26, 2021

This seems best solved with Module Blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed usability webpack webpack bundling
Projects
None yet
Development

No branches or pull requests

2 participants