This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix building for Cloudflare Nitro preset
It seems that Rollup node-resolve module doesn't properly deal with trailing slashes, causing it to thing that `string_decoder` is a built-in Node.js dependency and attempt to import it from `unenv`, which will obviously fail, because `string_decoder` is not, in fact, a Node.js dependency, but an individual dependency of `readable-stream`. This adds a small patch for `[email protected]` dependency, which removes the leading slash, which seems to fix the builds. This probably should be reported to relevant developers (Rollup node-resolve plugin or Nitro?).
- Loading branch information