GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(vite): preserve Vue plugin imports and canonical runtime bridge by rafaelaugustos · Pull Request #11555 · NativeScript/NativeScript

Conversation

@rafaelaugustos

@rafaelaugustos rafaelaugustos commented Oct 19, 2026

Copy link
Copy Markdown

PR Checklist

  • The PR title follows the contribution guidelines.
  • There is an issue for the bug/feature this PR is for.
  • You have signed the CLA.
  • All existing tests are passing (five existing environment-dependent failures reproduced on the unchanged base; details below).
  • Tests for the changes are included.

What is the current behavior?

Vue HMR rewrites dependencies whose names merely start with vue to /ns/rt, losing their exports. A per-module-served native plugin importing $navigateTo and ref from nativescript-vue can also receive duplicate helper bindings and the obsolete /ns/m/@nativescript/vendor.mjs URL.

What is the new behavior?

Match Vue runtime package boundaries and send the Vue strategy's framework imports directly to /ns/rt. Unrelated package imports retain their original destination, and the complete device transformation pipeline produces valid JavaScript for native navigation helpers.

Fixes #11554. Related to #11421; this does not claim to fix every dependency-routing case in that report.

Validation

  • Five regression cases failed before the patch. Nine regression cases now pass, including positive runtime prebundle cases and similarly named bare plugin imports.
  • nx run vite:test: 1,842 passed, five failed. All five failures are in typescript-optional.spec.ts, reporting The "paths[1]" argument must be of type string. Received undefined. Running that spec with both changed implementation files restored to base 3224f1b reproduces the same five failures (two passing).
  • nx format:write on changed files; git diff --check passes.
  • Original import failures observed on Android API 36 with published @nativescript/vite 8.0.19. The patch is verified through transformation tests, not a patched native package installation. Full file-routing native HMR remains separately blocked by the SFC assembler bypassing compile-time macro transforms. Bundled --no-hmr navigation is successful on iOS and Android with stock dependencies.

Manual follow-up: serve a linked plugin importing NativeScript-Vue navigation helpers through HTTP, then verify startup and a native push. Also verify an unrelated vue-* dependency keeps its own exports after optimization.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rafaelaugustos
fix(vite): preserve Vue plugin imports and canonical runtime bridge
64d385d
This was referenced Oct 19, 2026
feat(file-routing): ship native Vite integration in beta.14 rafaelaugustos/vue-router-ns#101
Merged
Support optional native file routing with Vite rafaelaugustos/vue-router-ns#100
Closed
@nx-cloud

nx-cloud Bot commented Oct 21, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 64d385d

Command Status Duration Result
nx test apps-automated -c=android ✅ Succeeded 3m 35s View ↗
nx run-many --target=test --configuration=ci --... ✅ Succeeded <1s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-10-21 18:36:42 UTC

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pkg-pr-new

pkg-pr-new Bot commented Oct 21, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@nativescript/core@11555
npm i https://pkg.pr.new/@nativescript/vite@11555
npm i https://pkg.pr.new/@nativescript/webpack@11555

commit: 64d385d

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@NathanWalker
NathanWalker merged commit 9bd4ace into NativeScript:main Oct 21, 2026
7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rafaelaugustos rafaelaugustos mentioned this pull request Oct 22, 2026
Adopt NativeScript Vite 8.0.20 and verify native HMR rafaelaugustos/vue-router-ns#113
Merged
@NathanWalker NathanWalker mentioned this pull request Oct 23, 2026
[Vite, Vue, HMR] per-module-served plugin subpath that imports nativescript-vue bare evaluates the real package root and double-runs init() (Element for AbsoluteLayout already registered) #11421
Closed
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Vite Vue HMR redirects similarly named packages and emits an obsolete vendor import

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@rafaelaugustos @NathanWalker
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.