-
-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
Stumbled on it by noticing that my regex's were failing, but raises a larger issue:
There are plenty of non-JSON values used in loader options that currently break when using thread-loader (regex, dates, functions). It seems like an easy solution would be to use a more comprehensive serialization method, or allow users to plug their own in. This will allow thread-loader to work with even more loaders and seems like a quick win.
I think this is the line in question:
thread-loader/src/WorkerPool.js
Line 101 in b02d503
const messageBuffer = Buffer.from(JSON.stringify(data), 'utf-8'); |
Quick glance shows a few libraries that handle this, I'm sure you could either do this internally or find a better one as well:
bfricka, await-ovo, kenrick95, r00t3g and JounQinseognil
Metadata
Metadata
Assignees
Labels
No labels