-
Notifications
You must be signed in to change notification settings - Fork 442
Open
Description
Since prettier uses node specific modules i'm having issues running it in other runtime. Even if I turn off formatting with format: false, i still get noise in logs as following:
cloudflare workers:
[vitest-pool-workers] Failed to import "node:v8" from "/Users/shoeboom/Code/workspace/actions/node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/index.mjs". To resolve this, try
bundling the relevant dependency with Vite. For more details, refer to https://developers.cloudflare.com/workers/testing/vitest-
integration/known-issues/#module-resolution
I'd like to propose:
- lazy-load
prettieronly whenformat: true
Related issues:
- prettier (via formatter.ts:format) is not working in browser usage demo #189 discusses Prettier causing browser usage issues
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels