benkeen / generatedata

A powerful, feature-rich, random test data generator.
https://generatedata.com
2.21k stars 610 forks source link

Update worker bundles to IIFEs #743

Closed benkeen closed 1 year ago

benkeen commented 2 years ago

This requires a bit more investigation and experimentation, but so far it appears to work fine.

The current rollup bundling process for the web worker bundles is pretty lightweight: it doesn't accommodate proper imports and won't work for the Bitcoin plugin which has external dependencies. Also when we move this app to run as a a server app we'll need to extract the generation code from the workers themselves - since they won't run on the server and are kinda klutzy in that context. So again we'll need to generate proper bundles, using the web worker wrapper as the target in each place.

benkeen commented 1 year ago

Don't think this is now needed. We've extracted the generation code from the worker code and there's basically just boilerplate left.