Title: why not pass the transform sourcemap to webpack · Issue #154 · unjs/unplugin · GitHub
Open Graph Title: why not pass the transform sourcemap to webpack · Issue #154 · unjs/unplugin
X Title: why not pass the transform sourcemap to webpack · Issue #154 · unjs/unplugin
Description: Hi~ I'm now using unplugin to write a plugin and the plugin will be transformed to webpack plugin and esbuild plugin. I only use one plugin to transform the .jsx file. In other words, there is only one loader to handle .jsx file. So the ...
Open Graph Description: Hi~ I'm now using unplugin to write a plugin and the plugin will be transformed to webpack plugin and esbuild plugin. I only use one plugin to transform the .jsx file. In other words, there is only...
X Description: Hi~ I'm now using unplugin to write a plugin and the plugin will be transformed to webpack plugin and esbuild plugin. I only use one plugin to transform the .jsx file. In other words, there is ...
Opengraph URL: https://github.com/unjs/unplugin/issues/154
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"why not pass the transform sourcemap to webpack ","articleBody":"Hi~ I'm now using unplugin to write a plugin and the plugin will be transformed to webpack plugin and esbuild plugin. \r\n\r\nI only use one plugin to transform the `.jsx` file. In other words, there is only one loader to handle `.jsx` file. So the transform function's param, `map` is `undefined`. But after I transform the `.jsx` file, I get the `res.map` value which is not the `undefined`. I am confused why the unplugin use the `map` first but not the `res.map`?\r\n\r\nhttps://github.com/unjs/unplugin/blob/f647af71bf22e5cc807e34113718ac25f465db6a/src/webpack/loaders/transform.ts#L31\r\n\r\nHere is how I use the unplugin transform hook: \r\nhttps://github.com/ice-lab/ice-next/blob/f5755a0c0afdda87b97393ce6dc44f0ac9b4db84/packages/webpack-config/src/unPlugins/compilation.ts#L104\r\n\r\nwebpack loader load order: https://webpack.js.org/contribute/writing-a-loader/#complex-usage","author":{"url":"https://github.com/luhc228","@type":"Person","name":"luhc228"},"datePublished":"2022-08-15T04:18:33Z","url":"https://github.com/unjs/unplugin/issues/154"}
| 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:99dce63a-bbd5-e330-721e-5e9c9892b71e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCCE:23E2FF:342248:473F7E:6B006C1E |
| html-safe-nonce | 92415b020ed44b625b42136160c817ac8c5aa4343a600067f3a275a8f14892cb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0NFOjIzRTJGRjozNDIyNDg6NDczRjdFOjZCMDA2QzFFIiwidmlzaXRvcl9pZCI6IjI5MzkwMDQyNjc5OTE2OTAyNzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 638b92bd0ce42f3918ae591d387dadac27f5302bc2a56c003b9d9f7f24fafb09 |
| hovercard-subject-tag | issue:1338518054 |
| 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/154/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1f7d6952b5ca3e16846b2be493975101fd12daa511b8af92e01471daa3e86efe/unjs/unplugin/issues/154 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1f7d6952b5ca3e16846b2be493975101fd12daa511b8af92e01471daa3e86efe/unjs/unplugin/issues/154 |
| og:image:alt | Hi~ I'm now using unplugin to write a plugin and the plugin will be transformed to webpack plugin and esbuild plugin. I only use one plugin to transform the .jsx file. In other words, there is only... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | luhc228 |
| 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