Why do the plugin examples use fs
over Bun's File I/O API?
#6490
Unanswered
jameschensmith
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing some internal Bun plugins, and I'm using Bun's examples as a starting point. I noticed that in both the YAML & Svelte plugin examples provided in Runtime > Plugins,
const { readFileSync } = await import("fs");
is being used. I was thinking to useBun.file
to read in the file, but I wasn't sure if I was missing a reason not to use it 🤔Beta Was this translation helpful? Give feedback.
All reactions