Title: fix(vite): remove browser preload probe from native bundles by tannerlinsley · Pull Request #11311 · NativeScript/NativeScript · GitHub
Open Graph Title: fix(vite): remove browser preload probe from native bundles by tannerlinsley · Pull Request #11311 · NativeScript/NativeScript
X Title: fix(vite): remove browser preload probe from native bundles by tannerlinsley · Pull Request #11311 · NativeScript/NativeScript
Description: Summary remove Vite's complete browser-only preload preamble when simplifying __vitePreload centralize the bundle transform so relative dynamic imports and preload cleanup are independently testable prevent document.createElement("link") from running in unminified NativeScript bundles Vite still emits scriptRel, assetsURL, and seen alongside __vitePreload when build.modulePreload is disabled. The existing plugin replaced only the function body, so scriptRel probed the DOM at startup and produced [UNDOM-NG] Element type 'link' is not registered. in development builds. Validation npx nx run vite:test --outputStyle=stream (78 tests) npx eslint --no-ignore packages/vite/helpers/dynamic-import-plugin.ts packages/vite/helpers/dynamic-import-plugin.spec.ts npx nx run vite:build --outputStyle=stream real NativeScript Android API 35 build/install and end-to-end navigation against a TanStack Start application generated .mjs inspection and device logs confirm the browser preload probe and runtime warning are gone The repository's vite:lint target currently exits because all configured paths are ignored; direct ESLint over both changed files passes.
Open Graph Description: Summary remove Vite's complete browser-only preload preamble when simplifying __vitePreload centralize the bundle transform so relative dynamic imports and preload cleanup are independently te...
X Description: Summary remove Vite's complete browser-only preload preamble when simplifying __vitePreload centralize the bundle transform so relative dynamic imports and preload cleanup are independentl...
Opengraph URL: https://github.com/NativeScript/NativeScript/pull/11311
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1bafa107-73db-7385-1c33-ca66666f421d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 985C:1E48FE:108A81:168C52:6A625C72 |
| html-safe-nonce | 428716547d1466d687b6c62e576f120ac0bba7efa90fa94da50f9374fa64b73f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODVDOjFFNDhGRToxMDhBODE6MTY4QzUyOjZBNjI1QzcyIiwidmlzaXRvcl9pZCI6IjI3MTcxNTA4MjAzODc5MzczOTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 92736360c6b2aa747a52b874a289056136658014dbd005daca485d0661321fc5 |
| hovercard-subject-tag | pull_request:4103079013 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/NativeScript/NativeScript/pull/11311/files |
| twitter:image | https://avatars.githubusercontent.com/u/5580297?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5580297?s=400&v=4 |
| og:image:alt | Summary remove Vite's complete browser-only preload preamble when simplifying __vitePreload centralize the bundle transform so relative dynamic imports and preload cleanup are independently te... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6d5cd56dfa7e7ed6718ba879da3c0d884bd8b5fecd3883b5f00dcb66b8b8680f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d28abcf30a4025dfeef7673e1509edbc5d402c97 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width