René's URL Explorer Experiment


Title: fix(bundler): resolve the configured bundler package and pass buildPath by farfromrefug · Pull Request #6127 · NativeScript/nativescript-cli · GitHub

Open Graph Title: fix(bundler): resolve the configured bundler package and pass buildPath by farfromrefug · Pull Request #6127 · NativeScript/nativescript-cli

X Title: fix(bundler): resolve the configured bundler package and pass buildPath by farfromrefug · Pull Request #6127 · NativeScript/nativescript-cli

Description: PR Checklist The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#commit-messages. There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it. You have signed the CLA. All existing tests are passing: https://github.com/NativeScript/nativescript-cli/blob/master/CONTRIBUTING.md#contribute-to-the-code-base Tests for the changes are included. What is the current behavior? Two problems for projects that set webpackPackageName in their config: getBundlerExecutablePath() and isModernBundler() both resolve the hardcoded @nativescript/webpack. When a project uses a fork (for instance @akylas/nativescript-webpack), that lookup fails and the CLI falls back to raw webpack/bin/webpack.js. webpack-cli then rejects the --env.x flags the CLI emits and the build dies with Unknown option '--env.'. buildEnvData() no longer passes buildPath, so bundlers resolving their output as ${env.buildPath}//dist write outside the platform folder. The CLI keeps waiting for files that never arrive and the run hangs after the bundler reports a successful compilation. What is the new behavior? Both bundler lookups go through the configured package name, falling back to @nativescript/webpack when none is set, so forks use the modern bin. buildPath is back in the bundler env, sourced from a new ProjectData.getBuildRelativeDirectoryPath() that honours the buildPath config entry and defaults to platforms. Testing tsc --noEmit is clean. Verified end to end against a project using @akylas/nativescript-webpack: before this change the run failed with Unknown option '--env.watchNodeModules', and once the bundler resolved it hung right after webpack compiled. With both fixes the run proceeds through prepare, pods and the native build. No unit tests are added — the change is in package resolution and env plumbing, which the existing suite does not cover. Summary by CodeRabbit New Features Build output paths can now be customized through NativeScript configuration. Bundler processing now supports configured webpack package alternatives. Build environment data includes the project’s relative build directory.

Open Graph Description: PR Checklist The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#commit-messages. There is an issue for the bug/feature this...

X Description: PR Checklist The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#commit-messages. There is an issue for the bug/feature this...

Opengraph URL: https://github.com/NativeScript/nativescript-cli/pull/6127

X: @github

direct link

Domain: redirect.github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9e8a8da7-695c-f26f-2113-29ac6250505b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA98C:161320:FBCE1:14EFED:6B018415
html-safe-nonced1965edafb55b2baa435829f4e64c56c2859738b43021570b4d9047896cde201
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOThDOjE2MTMyMDpGQkNFMToxNEVGRUQ6NkIwMTg0MTUiLCJ2aXNpdG9yX2lkIjoiNzA1OTQ1NzI2NzQwOTcxNjI0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdb6b7b8e4c4b59df4d08040778a37a5d91a64db0fee22619df3f17f6c2eea4ae
hovercard-subject-tagpull_request:4306382193
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/nativescript-cli/pull/6127/files
twitter:imagehttps://avatars.githubusercontent.com/u/655344?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/655344?s=400&v=4
og:image:altPR Checklist The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#commit-messages. There is an issue for the bug/feature this...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id21347346
octolytics-dimension-repository_nwoNativeScript/nativescript-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21347346
octolytics-dimension-repository_network_root_nwoNativeScript/nativescript-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fpull%2F6127%2Ffiles
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://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fpull%2F6127%2Ffiles
Sign uphttps://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2Fnativescript-cli
Reloadhttps://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files
Reloadhttps://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files
Reloadhttps://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files
NativeScripthttps://redirect.github.com/NativeScript
nativescript-clihttps://redirect.github.com/NativeScript/nativescript-cli
Codehttps://redirect.github.com/NativeScript/nativescript-cli
Issues357 (357)https://redirect.github.com/NativeScript/nativescript-cli/issues
Pull requests38 (38)https://redirect.github.com/NativeScript/nativescript-cli/pulls
Actionshttps://redirect.github.com/NativeScript/nativescript-cli/actions
Projectshttps://redirect.github.com/NativeScript/nativescript-cli/projects
Security and qualityhttps://redirect.github.com/NativeScript/nativescript-cli/security
Insightshttps://redirect.github.com/NativeScript/nativescript-cli/insights
Sign up for GitHub https://redirect.github.com/signup?return_to=%2FNativeScript%2Fnativescript-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://redirect.github.com/login?return_to=%2FNativeScript%2Fnativescript-cli%2Fissues%2Fnew%2Fchoose
NathanWalkerhttps://redirect.github.com/NathanWalker
NativeScript:mainhttps://redirect.github.com/NativeScript/nativescript-cli/tree/main
Akylas:fix/bundler-package-namehttps://redirect.github.com/Akylas/nativescript-cli/tree/fix/bundler-package-name
Conversation 2 https://redirect.github.com/NativeScript/nativescript-cli/pull/6127
Commits 1 https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/commits
Checks 11 https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/checks
Files changed https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files
Please reload this pagehttps://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files
fix(bundler): resolve the configured bundler package and pass buildPath https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#top
Show all changes 1 commit https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files
b555406 fix(bundler): resolve the configured bundler package and pass buildPath farfromrefug Aug 18, 2026 https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/commits/b555406e3553e87353296a71388759d8062bc990
Clear filters https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files
Please reload this pagehttps://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files
Please reload this pagehttps://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files
constants.ts https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-561ab956a0b904914573a9544f92493c5493b6e14d30372365bcdd9c5c7f6e59
project-data.ts https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-1a0a552383b81bb585c1f1342e9e37b53568e0ad761b7e35fe9e5b2ce3e8cad1
project-data.ts https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-96fa9e8c14010f740a6c68d28c0665f56f5b7f14e5f884f0a250d9046257dca0
bundler-compiler-service.ts https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-8521a4dbe0da9ef2aed7d98bcabac41a7465f50c76019e2b539c9d214c4bf310
stubs.ts https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-dd112d38ea758f19d5a841e5979dd2153713b9f19f0790124b4b8169a60709d9
lib/constants.tshttps://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-561ab956a0b904914573a9544f92493c5493b6e14d30372365bcdd9c5c7f6e59
View file https://redirect.github.com/Akylas/nativescript-cli/blob/b555406e3553e87353296a71388759d8062bc990/lib/constants.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/{{ revealButtonHref }}
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-561ab956a0b904914573a9544f92493c5493b6e14d30372365bcdd9c5c7f6e59
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-561ab956a0b904914573a9544f92493c5493b6e14d30372365bcdd9c5c7f6e59
lib/contracts/project-data.tshttps://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-1a0a552383b81bb585c1f1342e9e37b53568e0ad761b7e35fe9e5b2ce3e8cad1
View file https://redirect.github.com/Akylas/nativescript-cli/blob/b555406e3553e87353296a71388759d8062bc990/lib/contracts/project-data.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/{{ revealButtonHref }}
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-1a0a552383b81bb585c1f1342e9e37b53568e0ad761b7e35fe9e5b2ce3e8cad1
lib/project-data.tshttps://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-96fa9e8c14010f740a6c68d28c0665f56f5b7f14e5f884f0a250d9046257dca0
View file https://redirect.github.com/Akylas/nativescript-cli/blob/b555406e3553e87353296a71388759d8062bc990/lib/project-data.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/{{ revealButtonHref }}
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-96fa9e8c14010f740a6c68d28c0665f56f5b7f14e5f884f0a250d9046257dca0
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-96fa9e8c14010f740a6c68d28c0665f56f5b7f14e5f884f0a250d9046257dca0
lib/services/bundler/bundler-compiler-service.tshttps://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-8521a4dbe0da9ef2aed7d98bcabac41a7465f50c76019e2b539c9d214c4bf310
View file https://redirect.github.com/Akylas/nativescript-cli/blob/b555406e3553e87353296a71388759d8062bc990/lib/services/bundler/bundler-compiler-service.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/{{ revealButtonHref }}
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-8521a4dbe0da9ef2aed7d98bcabac41a7465f50c76019e2b539c9d214c4bf310
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-8521a4dbe0da9ef2aed7d98bcabac41a7465f50c76019e2b539c9d214c4bf310
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-8521a4dbe0da9ef2aed7d98bcabac41a7465f50c76019e2b539c9d214c4bf310
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-8521a4dbe0da9ef2aed7d98bcabac41a7465f50c76019e2b539c9d214c4bf310
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-8521a4dbe0da9ef2aed7d98bcabac41a7465f50c76019e2b539c9d214c4bf310
test/stubs.tshttps://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-dd112d38ea758f19d5a841e5979dd2153713b9f19f0790124b4b8169a60709d9
View file https://redirect.github.com/Akylas/nativescript-cli/blob/b555406e3553e87353296a71388759d8062bc990/test/stubs.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/{{ revealButtonHref }}
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-dd112d38ea758f19d5a841e5979dd2153713b9f19f0790124b4b8169a60709d9
https://redirect.github.com/NativeScript/nativescript-cli/pull/6127/files#diff-dd112d38ea758f19d5a841e5979dd2153713b9f19f0790124b4b8169a60709d9
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.