René's URL Explorer Experiment


Title: [Feature Request]: Standardized Abstract File System Interface (`this.fs`) · Issue #593 · unjs/unplugin · GitHub

Open Graph Title: [Feature Request]: Standardized Abstract File System Interface (`this.fs`) · Issue #593 · unjs/unplugin

X Title: [Feature Request]: Standardized Abstract File System Interface (`this.fs`) · Issue #593 · unjs/unplugin

Description: Describe the feature Currently, many modern bundlers can operate in non-Node.js environments (e.g., Browsers, Edge Workers, or WASM-based runtimes). Examples include Rollup, Rolldown (through WASM), Rspack (through WASM) and Vite (v7-, c...

Open Graph Description: Describe the feature Currently, many modern bundlers can operate in non-Node.js environments (e.g., Browsers, Edge Workers, or WASM-based runtimes). Examples include Rollup, Rolldown (through WASM)...

X Description: Describe the feature Currently, many modern bundlers can operate in non-Node.js environments (e.g., Browsers, Edge Workers, or WASM-based runtimes). Examples include Rollup, Rolldown (through WASM)...

Opengraph URL: https://github.com/unjs/unplugin/issues/593

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature Request]: Standardized Abstract File System Interface (`this.fs`)","articleBody":"### Describe the feature\n\nCurrently, many modern bundlers can operate in non-Node.js environments (e.g., Browsers, Edge Workers, or WASM-based runtimes). Examples include  [Rollup](https://rollupjs.org/browser/), Rolldown (through [WASM](https://www.npmjs.com/package/@rolldown)), Rspack (through [WASM](https://rspack.rs/api/javascript-api/browser)) and Vite (v7-, [community](https://divriots.com/blog/vite-in-the-browser)).\n\nIn these environments, the standard `node:fs` module is unavailable. This creates a significant hurdle for plugins that need to access the file system (e.g., reading `tsconfig.json`, `package.json`, or checking file existence within the `load` or `transform` hooks). Since `unplugin` aims to provide a unified interface, it would be highly beneficial to abstract file system access to ensure plugins remain environment-agnostic.\n\n### Current Landscape\n\nSeveral major bundlers already provide an abstract FS interface through the plugin context:\n\n| Bundler | Abstract FS Support | Notes |\n| :--- | :--- | :--- |\n| **Rollup** | ✅ [`this.fs`](https://rollupjs.org/plugin-development/#this-fs) | [User-configurable](https://rollupjs.org/browser/#using-an-in-memory-file-system) via `fs` option |\n| **Rolldown** | ✅ [`this.fs`](https://rolldown.rs/reference/Interface.PluginContext#fs) | FS is configurable via an exposed `memfs` instance in browser build |\n| **Vite** | ✅ Supported | [Compatible](https://vite.dev/guide/api-plugin#rolldown-plugin-compatibility) with Rollup/Rolldown context |\n| **Webpack** | ✅ [`this.fs`](https://webpack.js.org/api/loaders/#thisfs) | [User-configurable](https://webpack.js.org/api/node/#custom-file-systems) via `inputFileSystem` |\n| **Rspack** | ✅ [`this.fs`](https://rspack.rs/api/loader-api/context#thisfs) | [Experimental](https://rspack.rs/config/experiments#experimentsuseinputfilesystem) support via `inputFileSystem` |\n| **Farm** | ❌ No | |\n| **Esbuild** | ❌ No | WASM build exists, but no native FS abstraction for plugins |\n| **Bun** | ❌ No |  |\n\n### Proposed Solution\n\nI propose that `unplugin` introduces a standardized `fs` object to the plugin context (e.g., `this.fs` or via the hook arguments).\n\nThis interface should ideally mimic a subset of the `node:fs` API (like `readFile`, `stat`, `lstat`) that the underlying bundler provides. For bundlers that do not yet support an abstract FS, `unplugin` could provide a transparent fallback to `node:fs` when running in Node.js.\n\n### Benefit\n\n- **Portability**: Plugins will work out-of-the-box in Web-based IDEs (like StackBlitz), WASM-powered tools, and standard Node.js environments.\n- **Consistency**: Developers won't need to write conditional logic to check if they are in a Node.js environment before performing simple I/O tasks.\n\n\n### Additional information\n\n- [ ] Would you be willing to help implement this feature?","author":{"url":"https://github.com/guyutongxue","@type":"Person","name":"guyutongxue"},"datePublished":"2026-04-11T07:56:12Z","url":"https://github.com/unjs/unplugin/issues/593"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:02b7b053-e12c-8ed2-fc63-fae784d79ca3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA16C:1AEC58:D15FA2:1184A8B:6B0052AF
html-safe-nonce23250223e308c30d5eaed3cff42cc9e1a08888ed53bb4899d37e946fb84b50d5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTZDOjFBRUM1ODpEMTVGQTI6MTE4NEE4Qjo2QjAwNTJBRiIsInZpc2l0b3JfaWQiOiI1NDAwNzQ3MTU5NzU2NzU1NjMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc6dbd1a7f4af4d935d530a4b144189c40fa498833dc027176488fd890068d58a
hovercard-subject-tagissue:4243649756
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/unjs/unplugin/593/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5ff3b95fd756a94c056e0eae7b3f3db8146cd28ebed716d25f9b543e8f93d04c/unjs/unplugin/issues/593
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5ff3b95fd756a94c056e0eae7b3f3db8146cd28ebed716d25f9b543e8f93d04c/unjs/unplugin/issues/593
og:image:altDescribe the feature Currently, many modern bundlers can operate in non-Node.js environments (e.g., Browsers, Edge Workers, or WASM-based runtimes). Examples include Rollup, Rolldown (through WASM)...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameguyutongxue
hostnamegithub.com
expected-hostnamegithub.com
Nonef420f4996e6b1ff1ccd6d7683f8134f4b5f0f8a50124c210dbfe7490e5644abb
turbo-cache-controlno-preview
go-importgithub.com/unjs/unplugin git https://github.com/unjs/unplugin.git
octolytics-dimension-user_id80154025
octolytics-dimension-user_loginunjs
octolytics-dimension-repository_id385261169
octolytics-dimension-repository_nwounjs/unplugin
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id385261169
octolytics-dimension-repository_network_root_nwounjs/unplugin
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release26e00df917aba0f128135dc073ea0c5e33a70d40
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/unjs/unplugin/issues/593#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Funjs%2Funplugin%2Fissues%2F593
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Funjs%2Funplugin%2Fissues%2F593
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=unjs%2Funplugin
Reloadhttps://github.com/unjs/unplugin/issues/593
Reloadhttps://github.com/unjs/unplugin/issues/593
Reloadhttps://github.com/unjs/unplugin/issues/593
unjshttps://github.com/unjs
unpluginhttps://github.com/unjs/unplugin
Codehttps://github.com/unjs/unplugin
Issues33 (33)https://github.com/unjs/unplugin/issues
Pull requests8 (8)https://github.com/unjs/unplugin/pulls
Actionshttps://github.com/unjs/unplugin/actions
Security and qualityhttps://github.com/unjs/unplugin/security
Insightshttps://github.com/unjs/unplugin/insights
https://github.com/unjs/unplugin
New issuehttps://github.com/login?return_to=https://github.com/unjs/unplugin/issues/593
New issuehttps://github.com/login?return_to=https://github.com/unjs/unplugin/issues/593
#596https://github.com/unjs/unplugin/pull/596
[Feature Request]: Standardized Abstract File System Interface (this.fs)https://github.com/unjs/unplugin/issues/593#top
#596https://github.com/unjs/unplugin/pull/596
enhancementNew feature or requesthttps://github.com/unjs/unplugin/issues?q=state%3Aopen%20label%3A%22enhancement%22
pr welcomehttps://github.com/unjs/unplugin/issues?q=state%3Aopen%20label%3A%22pr%20welcome%22
https://github.com/guyutongxue
guyutongxuehttps://github.com/guyutongxue
on Apr 11, 2026https://github.com/unjs/unplugin/issues/593#issue-4243649756
Rolluphttps://rollupjs.org/browser/
WASMhttps://www.npmjs.com/package/@rolldown
WASMhttps://rspack.rs/api/javascript-api/browser
communityhttps://divriots.com/blog/vite-in-the-browser
this.fshttps://rollupjs.org/plugin-development/#this-fs
User-configurablehttps://rollupjs.org/browser/#using-an-in-memory-file-system
this.fshttps://rolldown.rs/reference/Interface.PluginContext#fs
Compatiblehttps://vite.dev/guide/api-plugin#rolldown-plugin-compatibility
this.fshttps://webpack.js.org/api/loaders/#thisfs
User-configurablehttps://webpack.js.org/api/node/#custom-file-systems
this.fshttps://rspack.rs/api/loader-api/context#thisfs
Experimentalhttps://rspack.rs/config/experiments#experimentsuseinputfilesystem
guyutongxuehttps://github.com/guyutongxue
enhancementNew feature or requesthttps://github.com/unjs/unplugin/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Apr 11, 2026https://github.com/unjs/unplugin/issues/593#event-24404627805
guyutongxuehttps://github.com/guyutongxue
on Apr 11, 2026https://github.com/unjs/unplugin/issues/593#event-24404629237
sxzzhttps://github.com/sxzz
pr welcomehttps://github.com/unjs/unplugin/issues?q=state%3Aopen%20label%3A%22pr%20welcome%22
on May 8, 2026https://github.com/unjs/unplugin/issues/593#event-25296537735
Sign up for freehttps://github.com/signup?return_to=https://github.com/unjs/unplugin/issues/593
Sign in to commenthttps://github.com/login?return_to=https://github.com/unjs/unplugin/issues/593
enhancementNew feature or requesthttps://github.com/unjs/unplugin/issues?q=state%3Aopen%20label%3A%22enhancement%22
pr welcomehttps://github.com/unjs/unplugin/issues?q=state%3Aopen%20label%3A%22pr%20welcome%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.