Title: Webpack/rspack call load and transform with escaped paths · Issue #591 · unjs/unplugin · GitHub
Open Graph Title: Webpack/rspack call load and transform with escaped paths · Issue #591 · unjs/unplugin
X Title: Webpack/rspack call load and transform with escaped paths · Issue #591 · unjs/unplugin
Description: Environment unplugin 3.1.0 Reproduction See PR #592. Without the changes to src, added test fails with message: Error: load received escaped id: "C:\\Users\\edemaine\\Projects\\unplugin\\test\\fixtures\\hash-path\\src\\msg\u0000#hash.js"...
Open Graph Description: Environment unplugin 3.1.0 Reproduction See PR #592. Without the changes to src, added test fails with message: Error: load received escaped id: "C:\\Users\\edemaine\\Projects\\unplugin\\test\\fixt...
X Description: Environment unplugin 3.1.0 Reproduction See PR #592. Without the changes to src, added test fails with message: Error: load received escaped id: "C:\\Users\\edemaine\\Projects\\unplugin\\test\...
Opengraph URL: https://github.com/unjs/unplugin/issues/591
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Webpack/rspack call load and transform with escaped paths","articleBody":"### Environment\n\nunplugin 3.1.0\n\n### Reproduction\n\nSee PR #592. Without the changes to `src`, added test fails with message:\n\n```\nError: load received escaped id: \"C:\\\\Users\\\\edemaine\\\\Projects\\\\unplugin\\\\test\\\\fixtures\\\\hash-path\\\\src\\\\msg\\u0000#hash.js\"\n at assertUnescapedId (C:\\Users\\edemaine\\Projects\\unplugin\\test\\fixtures\\hash-path\\unplugin.js:11:11)\n at Object.load (C:\\Users\\edemaine\\Projects\\unplugin\\test\\fixtures\\hash-path\\unplugin.js:33:7)\n at Object.load (file:///C:/Users/edemaine/Projects/unplugin/dist/webpack/loaders/load.mjs:14:28)\n at LOADER_EXECUTION (C:\\Users\\edemaine\\Projects\\unplugin\\node_modules\\.pnpm\\loader-runner@4.3.1\\node_modules\\loader-runner\\lib\\LoaderRunner.js:195:14)\n at runSyncOrAsync (C:\\Users\\edemaine\\Projects\\unplugin\\node_modules\\.pnpm\\loader-runner@4.3.1\\node_modules\\loader-runner\\lib\\LoaderRunner.js:196:5)\n at iterateNormalLoaders (C:\\Users\\edemaine\\Projects\\unplugin\\node_modules\\.pnpm\\loader-runner@4.3.1\\node_modules\\loader-runner\\lib\\LoaderRunner.js:258:2)\n at processResourceCallback (C:\\Users\\edemaine\\Projects\\unplugin\\node_modules\\.pnpm\\loader-runner@4.3.1\\node_modules\\loader-runner\\lib\\LoaderRunner.js:282:5)\n at Object.processResource (C:\\Users\\edemaine\\Projects\\unplugin\\node_modules\\.pnpm\\webpack@5.104.1_esbuild@0.27.2_webpack-cli@6.0.1\\node_modules\\webpack\\lib\\NormalModule.js:1094:14)\n```\n\n### Describe the bug\n\nWebpack for example escapes `#` in paths into `\\0#`. These paths get passed into load and transform helpers, which makes it hard to actually load the file in a cross-platform way.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```sh\n\n```","author":{"url":"https://github.com/edemaine","@type":"Person","name":"edemaine"},"datePublished":"2026-03-15T20:41:12Z","url":"https://github.com/unjs/unplugin/issues/591"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f3d756f8-c0f6-c07a-b21e-b4df990ce4c3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E17E:4377D:3BFFF9:541CF6:6B00693D |
| html-safe-nonce | f6c18cab267deb95a2e50aa7b775747e2d89f5c41df42cc584941a25d386e512 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTdFOjQzNzdEOjNCRkZGOTo1NDFDRjY6NkIwMDY5M0QiLCJ2aXNpdG9yX2lkIjoiNDU1MjA4ODU1MTUxMjEwNzMyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ab87d61f24fa7c05f83a272d5212c8e9f107a4cfef602eb9f08f9e238693c5b0 |
| hovercard-subject-tag | issue:4079154836 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/unjs/unplugin/591/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d9a960acef739af152f0b7c07f4b5968c88407a252c44e1a36a72f46e91be2df/unjs/unplugin/issues/591 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d9a960acef739af152f0b7c07f4b5968c88407a252c44e1a36a72f46e91be2df/unjs/unplugin/issues/591 |
| og:image:alt | Environment unplugin 3.1.0 Reproduction See PR #592. Without the changes to src, added test fails with message: Error: load received escaped id: "C:\\Users\\edemaine\\Projects\\unplugin\\test\\fixt... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | edemaine |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa |
| turbo-cache-control | no-preview |
| go-import | github.com/unjs/unplugin git https://github.com/unjs/unplugin.git |
| octolytics-dimension-user_id | 80154025 |
| octolytics-dimension-user_login | unjs |
| octolytics-dimension-repository_id | 385261169 |
| octolytics-dimension-repository_nwo | unjs/unplugin |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 385261169 |
| octolytics-dimension-repository_network_root_nwo | unjs/unplugin |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width