3 ms·
In practice you can use tools like Webpack to process npm imports as a build step, and Cloudflare's own tooling (Wrangler) can run Webpack for you automatically
by kentonv 7y ago
In practice you can use tools like Webpack to process npm imports as a build step, and Cloudflare's own tooling (Wrangler) can run Webpack for you automatically.
However, it is true that npm modules that require Node.js-specific APIs won't work.
(Disclosure: I'm the tech lead for Workers.)