(I’m beginner). I’ve developed and test my first WORKER with success… My second program trial is the reuse of a JS library, for example, say L (import L from “L”;). Perhaps, I’m a bit naive/stupid, but “wrangler dev” fails: “Cannot read properties of undefined (reading ‘X’))”. Of course, my worker code includes L.X(); statement. Reading this tutorial (https://betterprogramming.pub/create-and-deploy-your-first-javascript-serverless-worker-e234f3f69cea
), I saw the reuse of itty-router lib. (import { Router } from ‘itty-router’;). Question: do I have to package the L library by means of WebPack in my worker code? What is the functioning behind “wrangler dev”, ie, I feel that the code is locally deployed but what about runtime dependencies? Thanks about any potential highlight!
FYI 1: I’ve tested this second program trial with Node.js: all is OK.
FYI 2: I’m currently developing for my client a tutorial/POC on serverless computing/serverless function using Cloudflare WORKERS as illustrators. I intend to publish this tutorial ASAP based on BPMN orchestration of functions.