node-archiver icon indicating copy to clipboard operation
node-archiver copied to clipboard

Use node:-prefixed imports for Node.js core modules

Open olriko opened this issue 7 months ago • 0 comments

Currently, the package uses bare specifiers to import Node.js core modules. This prevents the package from being used in environments like Cloudflare Workers Runtime, which don't support Node.js APIs.

To improve compatibility, we should update our imports to use the node: prefix for all Node.js core modules.

Example change:

  • import fs from 'fs';
  • import fs from 'node:fs';

image https://developers.cloudflare.com/workers/runtime-apis/nodejs/

olriko avatar Jul 04 '24 22:07 olriko