|
|
|
|
|
by skybrian
86 days ago
|
|
Could an AI decide to download JavaScript libraries of its choice into a dynamic worker? That wouldn't be as flexible as a full Linux VM but it might be interesting. Edit: I guess not: > If your Dynamic Worker needs TypeScript compilation or npm dependencies, the code must be transpiled and bundled before passing to the Worker Loader. https://developers.cloudflare.com/dynamic-workers/getting-st... |
|
You could certainly set it up to allow the AI to import arbitrary npm modules if you want. We even offer a library to help with that:
https://www.npmjs.com/package/@cloudflare/worker-bundler