René's URL Explorer Experiment


Title: [path] replacer token passed to workerize-loader has stopped working in Webpack 5 · Issue #130 · developit/workerize-loader · GitHub

Open Graph Title: [path] replacer token passed to workerize-loader has stopped working in Webpack 5 · Issue #130 · developit/workerize-loader

X Title: [path] replacer token passed to workerize-loader has stopped working in Webpack 5 · Issue #130 · developit/workerize-loader

Description: Used to be the case with Webpack 4 that we could pass [path][name].[contenthash] as the name template for workerize-loader to use; and we'd get workers output into a folder structure mirroring their original source location. This was nic...

Open Graph Description: Used to be the case with Webpack 4 that we could pass [path][name].[contenthash] as the name template for workerize-loader to use; and we'd get workers output into a folder structure mirroring thei...

X Description: Used to be the case with Webpack 4 that we could pass [path][name].[contenthash] as the name template for workerize-loader to use; and we'd get workers output into a folder structure mirroring ...

Opengraph URL: https://github.com/developit/workerize-loader/issues/130

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[path] replacer token passed to workerize-loader has stopped working in Webpack 5","articleBody":"Used to be the case with Webpack 4 that we could pass `[path][name].[contenthash]` as the name template for workerize-loader to use; and we'd get workers output into a folder structure mirroring their original source location.\r\n\r\nThis was nice for debugging purposes to easily identify workers, because the entry point file for esp. larger workers is usually some kind of `index.js` file. `[path]` means you don't need to inspect every separate worker named `index.[hash].worker.js` - and it prevented name collisions when you would generate names in development builds without hash fingerprints in them.\r\n\r\nAs of Webpack 5, that functionality appears to be broken. It resolves `[name]` and `[contenthash]` just fine, but doesn't know how to deal with `[path]`.\r\n\r\n\r\nI'm using a plugin to dynamically inject options into loaders to configure bare loader URLs such as\r\n```js\r\nimport worker from \"workerize-loader!./path-to/worker\"\r\n```\r\n\r\ncentrally, and luckily I was able to extend the logic there to use the current compilation context and module context to compute a relative path, but yeah... _this_ is not very ergonomic, easily understood or maintainable:\r\n\r\n```js\r\nnew InjectOptionsPlugin({\r\n  loaders : {\r\n    \"workerize-loader\" : ( module, compilation ) =\u003e {\r\n      const context = path\r\n        .relative( compilation.options.context, module.context );\r\n        .replace( /\\\\/g, \"/\" );\r\n        \r\n      return {\r\n        name : dev ? `${context}[name]` : \"${context}[name].[contenthash]`\r\n      };\r\n    }\r\n  }\r\n})\r\n```\r\n\r\ncompared to what it _used_ to be:\r\n\r\n```js\r\nnew InjectOptionsPlugin({\r\n  loaders : {\r\n    \"workerize-loader\" : {\r\n      name : dev ? \"[path][name]\" : \"[path][name].[contenthash]\"\r\n    }\r\n  }\r\n})\r\n```","author":{"url":"https://github.com/rjgotten","@type":"Person","name":"rjgotten"},"datePublished":"2022-09-12T10:21:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/130/workerize-loader/issues/130"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bdcabaf1-5c23-cac8-ec99-90f6b1fdf830
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9958:36F659:5D568E:7FB0C8:6A5545A9
html-safe-nonce87e4f59a6df30403170f41fef4e48cfa64c0415764c4577affd5a79b952c5e85
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTU4OjM2RjY1OTo1RDU2OEU6N0ZCMEM4OjZBNTU0NUE5IiwidmlzaXRvcl9pZCI6IjgwMzMzMjAwMjYzNjE5MDY2MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac844cecb5d8f311faa5fd2a200a4e64557eb759fe270560f65daf3c932516bbed
hovercard-subject-tagissue:1369636061
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/developit/workerize-loader/130/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f191e204ef8eb3aa6ee970edc6958a8d569742bbec1427a6915d6d3b27f1fba7/developit/workerize-loader/issues/130
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f191e204ef8eb3aa6ee970edc6958a8d569742bbec1427a6915d6d3b27f1fba7/developit/workerize-loader/issues/130
og:image:altUsed to be the case with Webpack 4 that we could pass [path][name].[contenthash] as the name template for workerize-loader to use; and we'd get workers output into a folder structure mirroring thei...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerjgotten
hostnamegithub.com
expected-hostnamegithub.com
Nonecd9eea424140838b22e9eabd53d92b5702617ddd6d76efcd3a37f08d44309ca5
turbo-cache-controlno-preview
go-importgithub.com/developit/workerize-loader git https://github.com/developit/workerize-loader.git
octolytics-dimension-user_id105127
octolytics-dimension-user_logindevelopit
octolytics-dimension-repository_id116874897
octolytics-dimension-repository_nwodevelopit/workerize-loader
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id116874897
octolytics-dimension-repository_network_root_nwodevelopit/workerize-loader
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
release3084b9f587e8f1e19803bbe0c77ac77ce3c99c5c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/developit/workerize-loader/issues/130#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevelopit%2Fworkerize-loader%2Fissues%2F130
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevelopit%2Fworkerize-loader%2Fissues%2F130
Sign up https://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=developit%2Fworkerize-loader
Reloadhttps://github.com/developit/workerize-loader/issues/130
Reloadhttps://github.com/developit/workerize-loader/issues/130
Reloadhttps://github.com/developit/workerize-loader/issues/130
developit https://github.com/developit
workerize-loaderhttps://github.com/developit/workerize-loader
Notifications https://github.com/login?return_to=%2Fdevelopit%2Fworkerize-loader
Fork 85 https://github.com/login?return_to=%2Fdevelopit%2Fworkerize-loader
Star 2.3k https://github.com/login?return_to=%2Fdevelopit%2Fworkerize-loader
Code https://github.com/developit/workerize-loader
Issues 22 https://github.com/developit/workerize-loader/issues
Pull requests 6 https://github.com/developit/workerize-loader/pulls
Actions https://github.com/developit/workerize-loader/actions
Security and quality 0 https://github.com/developit/workerize-loader/security
Insights https://github.com/developit/workerize-loader/pulse
Code https://github.com/developit/workerize-loader
Issues https://github.com/developit/workerize-loader/issues
Pull requests https://github.com/developit/workerize-loader/pulls
Actions https://github.com/developit/workerize-loader/actions
Security and quality https://github.com/developit/workerize-loader/security
Insights https://github.com/developit/workerize-loader/pulse
[path] replacer token passed to workerize-loader has stopped working in Webpack 5https://github.com/developit/workerize-loader/issues/130#top
https://github.com/rjgotten
rjgottenhttps://github.com/rjgotten
on Sep 12, 2022https://github.com/developit/workerize-loader/issues/130#issue-1369636061
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.