René's URL Explorer Experiment


Title: imported name renamed with $1 suffix in generated code, but not in all cases · Issue #613 · unplugin/unplugin-auto-import · GitHub

Open Graph Title: imported name renamed with $1 suffix in generated code, but not in all cases · Issue #613 · unplugin/unplugin-auto-import

X Title: imported name renamed with $1 suffix in generated code, but not in all cases · Issue #613 · unplugin/unplugin-auto-import

Description: Describe the bug Hard to pin down what is exactly happening, but reporting just to leave a trace in case others run into it. I have a spread in computed like ...mapStores(useMyStore) and that works fine. But if I put the useMyStore on a ...

Open Graph Description: Describe the bug Hard to pin down what is exactly happening, but reporting just to leave a trace in case others run into it. I have a spread in computed like ...mapStores(useMyStore) and that works...

X Description: Describe the bug Hard to pin down what is exactly happening, but reporting just to leave a trace in case others run into it. I have a spread in computed like ...mapStores(useMyStore) and that works...

Opengraph URL: https://github.com/unplugin/unplugin-auto-import/issues/613

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"imported name renamed with $1 suffix in generated code, but not in all cases","articleBody":"### Describe the bug\n\nHard to pin down what is exactly happening, but reporting just to leave a trace in case others run into it.\n\nI have a spread in `computed` like\n\n```\n...mapStores(useMyStore)\n```\nand that works fine.\n\nBut if I put the useMyStore on a separate line, like\n```\n...mapStores(\n    useMyStore\n)\n```\nthen it is problematic. Unfortunately this isn't standalone, it needs using `useMyStore` in some way in an other module in a larger project. I tried with a minimal project, but couldn't prod a setup that repros so far.\n\nWhat seems to happen is that the generated bundle will take the useMyStore as a closure (`... u as useMyStore`) normally, but in the bad case, it is passed as `u as useMyStore$1`. Actually all the uses are renamed to `useMyStore$1` too, so that's fine, but the above mentioned single-line-formatted spread is left out and left as `useMyStore`, which is then not found.\n\nIf I remove either of the newlines around the single `useMyStore`, so a paren is immediately on the same line, the problem stops happening. Very odd.\n\n### Reproduction\n\ntried, but couldn't\n\n### System Info\n\n```Shell\nunplugin-auto-import 20.3.0\nvite 7.2.7\nvue 2.7.16\n```\n\n### Used Package Manager\n\nnpm\n\n### Validations\n\n- [x] Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md)\n- [x] Read the [Contributing Guide](https://github.com/antfu/contribute).\n- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.\n- [x] Check that this is a concrete bug. For Q\u0026A, please open a GitHub Discussion instead.\n- [ ] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.","author":{"url":"https://github.com/robinp","@type":"Person","name":"robinp"},"datePublished":"2025-12-13T23:06:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/613/unplugin-auto-import/issues/613"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6a14665e-0712-4abe-9efe-045ec3a7b9c4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8F48:1AC151:23A539E:306FC3F:69808008
html-safe-nonce70a15e622960655588cc42ff085f72c71923a832f0e8de352e604b1039dae533
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjQ4OjFBQzE1MToyM0E1MzlFOjMwNkZDM0Y6Njk4MDgwMDgiLCJ2aXNpdG9yX2lkIjoiMjcyODQwNzk4OTc4NTQ5MzUxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1c47b38f402b711bef94ade1e722787442150038be0703eb82e955abec857f89
hovercard-subject-tagissue:3726483566
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/unplugin/unplugin-auto-import/613/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c9c37c259add6fd13b9381ce4812a73f3b9ce03ebd47ebe3e7c92f1ac598086e/unplugin/unplugin-auto-import/issues/613
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c9c37c259add6fd13b9381ce4812a73f3b9ce03ebd47ebe3e7c92f1ac598086e/unplugin/unplugin-auto-import/issues/613
og:image:altDescribe the bug Hard to pin down what is exactly happening, but reporting just to leave a trace in case others run into it. I have a spread in computed like ...mapStores(useMyStore) and that works...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerobinp
hostnamegithub.com
expected-hostnamegithub.com
None4590f1c00c56e5b3a3460b81e4236454a157a2159793b09a2ddee090670e75fb
turbo-cache-controlno-preview
go-importgithub.com/unplugin/unplugin-auto-import git https://github.com/unplugin/unplugin-auto-import.git
octolytics-dimension-user_id143585159
octolytics-dimension-user_loginunplugin
octolytics-dimension-repository_id399356027
octolytics-dimension-repository_nwounplugin/unplugin-auto-import
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id399356027
octolytics-dimension-repository_network_root_nwounplugin/unplugin-auto-import
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
release242fda17fe105562f9eb7fe91a7a0dca07c527b3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/issues/613#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Funplugin%2Funplugin-auto-import%2Fissues%2F613
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Funplugin%2Funplugin-auto-import%2Fissues%2F613
Sign up https://patch-diff.githubusercontent.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=unplugin%2Funplugin-auto-import
Reloadhttps://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/issues/613
Reloadhttps://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/issues/613
Reloadhttps://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/issues/613
unplugin https://patch-diff.githubusercontent.com/unplugin
unplugin-auto-importhttps://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import
Please reload this pagehttps://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/issues/613
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Funplugin%2Funplugin-auto-import
Fork 219 https://patch-diff.githubusercontent.com/login?return_to=%2Funplugin%2Funplugin-auto-import
Star 3.8k https://patch-diff.githubusercontent.com/login?return_to=%2Funplugin%2Funplugin-auto-import
Code https://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import
Issues 77 https://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/issues
Pull requests 6 https://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/pulls
Actions https://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/actions
Projects 0 https://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/projects
Security 0 https://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/security
Insights https://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/pulse
Code https://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import
Issues https://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/issues
Pull requests https://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/pulls
Actions https://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/actions
Projects https://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/projects
Security https://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/security
Insights https://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/unplugin/unplugin-auto-import/issues/613
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/unplugin/unplugin-auto-import/issues/613
imported name renamed with $1 suffix in generated code, but not in all caseshttps://patch-diff.githubusercontent.com/unplugin/unplugin-auto-import/issues/613#top
https://github.com/robinp
https://github.com/robinp
robinphttps://github.com/robinp
on Dec 13, 2025https://github.com/unplugin/unplugin-auto-import/issues/613#issue-3726483566
Code of Conducthttps://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md
Contributing Guidehttps://github.com/antfu/contribute
minimal reproduciblehttps://stackoverflow.com/help/minimal-reproducible-example
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.