@nativescript/vite 0.0.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +81 -0
  3. package/{dist/configuration → configuration}/angular.d.ts +1 -1
  4. package/configuration/angular.js +371 -0
  5. package/configuration/angular.js.map +1 -0
  6. package/configuration/base.d.ts +5 -0
  7. package/configuration/base.js +491 -0
  8. package/configuration/base.js.map +1 -0
  9. package/configuration/javascript.d.ts +4 -0
  10. package/configuration/javascript.js +152 -0
  11. package/configuration/javascript.js.map +1 -0
  12. package/{dist/configuration → configuration}/react.d.ts +1 -1
  13. package/{dist/configuration → configuration}/react.js +18 -17
  14. package/configuration/react.js.map +1 -0
  15. package/{dist/configuration → configuration}/solid.d.ts +1 -1
  16. package/{dist/configuration → configuration}/solid.js +17 -16
  17. package/configuration/solid.js.map +1 -0
  18. package/configuration/typescript.d.ts +4 -0
  19. package/configuration/typescript.js +176 -0
  20. package/configuration/typescript.js.map +1 -0
  21. package/{dist/configuration → configuration}/vue.d.ts +1 -1
  22. package/configuration/vue.js +163 -0
  23. package/configuration/vue.js.map +1 -0
  24. package/helpers/angular/angular-linker.d.ts +13 -0
  25. package/helpers/angular/angular-linker.js +189 -0
  26. package/helpers/angular/angular-linker.js.map +1 -0
  27. package/helpers/angular/shared-linker.d.ts +4 -0
  28. package/helpers/angular/shared-linker.js +39 -0
  29. package/helpers/angular/shared-linker.js.map +1 -0
  30. package/helpers/angular/util.d.ts +1 -0
  31. package/helpers/angular/util.js +67 -0
  32. package/helpers/angular/util.js.map +1 -0
  33. package/helpers/cli-flags.d.ts +1 -0
  34. package/helpers/cli-flags.js +15 -0
  35. package/helpers/cli-flags.js.map +1 -0
  36. package/{dist/helpers → helpers}/commonjs-plugins.js +14 -13
  37. package/helpers/commonjs-plugins.js.map +1 -0
  38. package/{dist/helpers → helpers}/config-as-json.d.ts +1 -1
  39. package/{dist/helpers → helpers}/config-as-json.js +7 -6
  40. package/helpers/config-as-json.js.map +1 -0
  41. package/helpers/css-platform-plugin.d.ts +10 -0
  42. package/helpers/css-platform-plugin.js +76 -0
  43. package/helpers/css-platform-plugin.js.map +1 -0
  44. package/helpers/css-tree.js +22 -0
  45. package/helpers/css-tree.js.map +1 -0
  46. package/{dist/helpers → helpers}/dynamic-import-plugin.js +8 -7
  47. package/helpers/dynamic-import-plugin.js.map +1 -0
  48. package/helpers/esbuild-platform-resolver.d.ts +14 -0
  49. package/helpers/esbuild-platform-resolver.js +93 -0
  50. package/helpers/esbuild-platform-resolver.js.map +1 -0
  51. package/helpers/external-configs.d.ts +6 -0
  52. package/helpers/external-configs.js +34 -0
  53. package/helpers/external-configs.js.map +1 -0
  54. package/{dist/helpers → helpers}/flavor.d.ts +1 -0
  55. package/helpers/flavor.js +51 -0
  56. package/helpers/flavor.js.map +1 -0
  57. package/helpers/global-defines.d.ts +25 -0
  58. package/helpers/global-defines.js +29 -0
  59. package/helpers/global-defines.js.map +1 -0
  60. package/helpers/init.d.ts +1 -0
  61. package/helpers/init.js +119 -0
  62. package/helpers/init.js.map +1 -0
  63. package/helpers/logging.d.ts +13 -0
  64. package/helpers/logging.js +115 -0
  65. package/helpers/logging.js.map +1 -0
  66. package/helpers/main-entry.d.ts +10 -0
  67. package/helpers/main-entry.js +223 -0
  68. package/helpers/main-entry.js.map +1 -0
  69. package/{dist/helpers → helpers}/module-resolution.js +4 -3
  70. package/helpers/module-resolution.js.map +1 -0
  71. package/helpers/module-runner-patch.d.ts +3 -0
  72. package/helpers/module-runner-patch.js +63 -0
  73. package/helpers/module-runner-patch.js.map +1 -0
  74. package/helpers/nativeclass-transform.d.ts +7 -0
  75. package/helpers/nativeclass-transform.js +158 -0
  76. package/helpers/nativeclass-transform.js.map +1 -0
  77. package/helpers/nativeclass-transformer-plugin.d.ts +5 -0
  78. package/helpers/nativeclass-transformer-plugin.js +23 -0
  79. package/helpers/nativeclass-transformer-plugin.js.map +1 -0
  80. package/{dist/helpers → helpers}/nativescript-package-resolver.js +18 -17
  81. package/helpers/nativescript-package-resolver.js.map +1 -0
  82. package/helpers/ns-cli-plugins.d.ts +14 -0
  83. package/helpers/ns-cli-plugins.js +165 -0
  84. package/helpers/ns-cli-plugins.js.map +1 -0
  85. package/helpers/package-platform-aliases.d.ts +10 -0
  86. package/{dist/helpers → helpers}/package-platform-aliases.js +19 -23
  87. package/helpers/package-platform-aliases.js.map +1 -0
  88. package/helpers/postcss-platform-config.d.ts +13 -0
  89. package/helpers/postcss-platform-config.js +97 -0
  90. package/helpers/postcss-platform-config.js.map +1 -0
  91. package/helpers/prelink-angular.d.ts +2 -0
  92. package/helpers/prelink-angular.js +117 -0
  93. package/helpers/prelink-angular.js.map +1 -0
  94. package/helpers/preserve-imports.d.ts +2 -0
  95. package/helpers/preserve-imports.js +38 -0
  96. package/helpers/preserve-imports.js.map +1 -0
  97. package/{dist/helpers → helpers}/project.js +2 -4
  98. package/helpers/project.js.map +1 -0
  99. package/helpers/resolver.d.ts +4 -0
  100. package/{dist/helpers → helpers}/resolver.js +7 -6
  101. package/helpers/resolver.js.map +1 -0
  102. package/helpers/theme-core-plugins.d.ts +14 -0
  103. package/helpers/theme-core-plugins.js +121 -0
  104. package/helpers/theme-core-plugins.js.map +1 -0
  105. package/helpers/ts-config-paths.d.ts +10 -0
  106. package/{dist/helpers → helpers}/ts-config-paths.js +73 -72
  107. package/helpers/ts-config-paths.js.map +1 -0
  108. package/{dist/helpers → helpers}/utils.d.ts +10 -0
  109. package/helpers/utils.js +143 -0
  110. package/helpers/utils.js.map +1 -0
  111. package/{dist/helpers → helpers}/workers.js +15 -16
  112. package/helpers/workers.js.map +1 -0
  113. package/hmr/client/css-handler.d.ts +4 -0
  114. package/hmr/client/css-handler.js +78 -0
  115. package/hmr/client/css-handler.js.map +1 -0
  116. package/hmr/client/index.d.ts +13 -0
  117. package/hmr/client/index.js +1723 -0
  118. package/hmr/client/index.js.map +1 -0
  119. package/hmr/client/utils.d.ts +38 -0
  120. package/hmr/client/utils.js +426 -0
  121. package/hmr/client/utils.js.map +1 -0
  122. package/hmr/entry-runtime.d.ts +8 -0
  123. package/hmr/entry-runtime.js +135 -0
  124. package/hmr/entry-runtime.js.map +1 -0
  125. package/hmr/frameworks/angular/client/index.d.ts +8 -0
  126. package/hmr/frameworks/angular/client/index.js +59 -0
  127. package/hmr/frameworks/angular/client/index.js.map +1 -0
  128. package/hmr/frameworks/angular/server/linker.d.ts +1 -0
  129. package/hmr/frameworks/angular/server/linker.js +101 -0
  130. package/hmr/frameworks/angular/server/linker.js.map +1 -0
  131. package/hmr/frameworks/angular/server/strategy.d.ts +2 -0
  132. package/hmr/frameworks/angular/server/strategy.js +187 -0
  133. package/hmr/frameworks/angular/server/strategy.js.map +1 -0
  134. package/hmr/frameworks/solid/server/strategy.d.ts +2 -0
  135. package/hmr/frameworks/solid/server/strategy.js +56 -0
  136. package/hmr/frameworks/solid/server/strategy.js.map +1 -0
  137. package/hmr/frameworks/typescript/server/strategy.d.ts +2 -0
  138. package/hmr/frameworks/typescript/server/strategy.js +125 -0
  139. package/hmr/frameworks/typescript/server/strategy.js.map +1 -0
  140. package/hmr/frameworks/vue/client/index.d.ts +22 -0
  141. package/hmr/frameworks/vue/client/index.js +1541 -0
  142. package/hmr/frameworks/vue/client/index.js.map +1 -0
  143. package/hmr/frameworks/vue/server/compiler.d.ts +11 -0
  144. package/hmr/frameworks/vue/server/compiler.js +26 -0
  145. package/hmr/frameworks/vue/server/compiler.js.map +1 -0
  146. package/hmr/frameworks/vue/server/sfc-transforms.d.ts +14 -0
  147. package/hmr/frameworks/vue/server/sfc-transforms.js +282 -0
  148. package/hmr/frameworks/vue/server/sfc-transforms.js.map +1 -0
  149. package/hmr/frameworks/vue/server/strategy.d.ts +2 -0
  150. package/hmr/frameworks/vue/server/strategy.js +272 -0
  151. package/hmr/frameworks/vue/server/strategy.js.map +1 -0
  152. package/hmr/helpers/ast-extract.d.ts +6 -0
  153. package/hmr/helpers/ast-extract.js +72 -0
  154. package/hmr/helpers/ast-extract.js.map +1 -0
  155. package/hmr/helpers/ast-normalizer.d.ts +7 -0
  156. package/hmr/helpers/ast-normalizer.js +772 -0
  157. package/hmr/helpers/ast-normalizer.js.map +1 -0
  158. package/hmr/helpers/babel.d.ts +3 -0
  159. package/hmr/helpers/babel.js +17 -0
  160. package/hmr/helpers/babel.js.map +1 -0
  161. package/hmr/helpers/sanitize.d.ts +6 -0
  162. package/hmr/helpers/sanitize.js +55 -0
  163. package/hmr/helpers/sanitize.js.map +1 -0
  164. package/hmr/helpers/vendor-rewrite.d.ts +1 -0
  165. package/hmr/helpers/vendor-rewrite.js +35 -0
  166. package/hmr/helpers/vendor-rewrite.js.map +1 -0
  167. package/hmr/server/compiler.d.ts +2 -0
  168. package/hmr/server/compiler.js +75 -0
  169. package/hmr/server/compiler.js.map +1 -0
  170. package/hmr/server/constants.d.ts +14 -0
  171. package/hmr/server/constants.js +23 -0
  172. package/hmr/server/constants.js.map +1 -0
  173. package/hmr/server/core-sanitize.d.ts +32 -0
  174. package/hmr/server/core-sanitize.js +134 -0
  175. package/hmr/server/core-sanitize.js.map +1 -0
  176. package/hmr/server/framework-strategy.d.ts +68 -0
  177. package/hmr/server/framework-strategy.js +2 -0
  178. package/hmr/server/framework-strategy.js.map +1 -0
  179. package/hmr/server/index.d.ts +5 -0
  180. package/hmr/server/index.js +23 -0
  181. package/hmr/server/index.js.map +1 -0
  182. package/hmr/server/vite-plugin.d.ts +5 -0
  183. package/hmr/server/vite-plugin.js +44 -0
  184. package/hmr/server/vite-plugin.js.map +1 -0
  185. package/hmr/server/websocket.d.ts +21 -0
  186. package/hmr/server/websocket.js +5619 -0
  187. package/hmr/server/websocket.js.map +1 -0
  188. package/hmr/shared/runtime/http-only-boot.d.ts +1 -0
  189. package/hmr/shared/runtime/http-only-boot.js +107 -0
  190. package/hmr/shared/runtime/http-only-boot.js.map +1 -0
  191. package/hmr/shared/runtime/root-placeholder.d.ts +1 -0
  192. package/hmr/shared/runtime/root-placeholder.js +142 -0
  193. package/hmr/shared/runtime/root-placeholder.js.map +1 -0
  194. package/hmr/shared/runtime/vendor-bootstrap.d.ts +1 -0
  195. package/hmr/shared/runtime/vendor-bootstrap.js +134 -0
  196. package/hmr/shared/runtime/vendor-bootstrap.js.map +1 -0
  197. package/hmr/shared/vendor/manifest-loader.d.ts +9 -0
  198. package/hmr/shared/vendor/manifest-loader.js +38 -0
  199. package/hmr/shared/vendor/manifest-loader.js.map +1 -0
  200. package/hmr/shared/vendor/manifest.d.ts +35 -0
  201. package/hmr/shared/vendor/manifest.js +811 -0
  202. package/hmr/shared/vendor/manifest.js.map +1 -0
  203. package/hmr/shared/vendor/registry.d.ts +9 -0
  204. package/hmr/shared/vendor/registry.js +62 -0
  205. package/hmr/shared/vendor/registry.js.map +1 -0
  206. package/hmr/vendor-bootstrap.d.ts +3 -0
  207. package/hmr/vendor-bootstrap.js +32 -0
  208. package/hmr/vendor-bootstrap.js.map +1 -0
  209. package/{dist/index.d.ts → index.d.ts} +2 -0
  210. package/index.js +19 -0
  211. package/index.js.map +1 -0
  212. package/package.json +42 -30
  213. package/{dist/polyfills → polyfills}/mdn-data-at-rules.js +1 -0
  214. package/polyfills/mdn-data-at-rules.js.map +1 -0
  215. package/{dist/polyfills → polyfills}/mdn-data-properties.js +1 -0
  216. package/polyfills/mdn-data-properties.js.map +1 -0
  217. package/{dist/polyfills → polyfills}/mdn-data-syntaxes.js +1 -0
  218. package/polyfills/mdn-data-syntaxes.js.map +1 -0
  219. package/{dist/polyfills → polyfills}/module.js +1 -0
  220. package/polyfills/module.js.map +1 -0
  221. package/runtime/core-aliases-early.d.ts +1 -0
  222. package/runtime/core-aliases-early.js +334 -0
  223. package/runtime/core-aliases-early.js.map +1 -0
  224. package/shims/angular-animations-stub.d.ts +68 -0
  225. package/shims/angular-animations-stub.js +140 -0
  226. package/shims/angular-animations-stub.js.map +1 -0
  227. package/shims/node-module.d.ts +5 -0
  228. package/shims/node-module.js +13 -0
  229. package/shims/node-module.js.map +1 -0
  230. package/{dist/shims → shims}/react-reconciler-constants.js +2 -1
  231. package/shims/react-reconciler-constants.js.map +1 -0
  232. package/{dist/shims → shims}/react-reconciler.js +1 -0
  233. package/shims/react-reconciler.js.map +1 -0
  234. package/{dist/shims → shims}/set-value.js +5 -1
  235. package/shims/set-value.js.map +1 -0
  236. package/transformers/NativeClass/index.d.ts +2 -0
  237. package/transformers/NativeClass/index.js +222 -0
  238. package/transformers/NativeClass/index.js.map +1 -0
  239. package/dist/configuration/angular.js +0 -30
  240. package/dist/configuration/base.d.ts +0 -13
  241. package/dist/configuration/base.js +0 -228
  242. package/dist/configuration/old-without-merge-base.d.ts +0 -13
  243. package/dist/configuration/old-without-merge-base.js +0 -249
  244. package/dist/configuration/vue.js +0 -45
  245. package/dist/helpers/css-tree.js +0 -21
  246. package/dist/helpers/flavor.js +0 -40
  247. package/dist/helpers/global-defines.d.ts +0 -14
  248. package/dist/helpers/global-defines.js +0 -18
  249. package/dist/helpers/main-entry.d.ts +0 -5
  250. package/dist/helpers/main-entry.js +0 -75
  251. package/dist/helpers/ns-cli-plugins.d.ts +0 -17
  252. package/dist/helpers/ns-cli-plugins.js +0 -128
  253. package/dist/helpers/package-platform-aliases.d.ts +0 -4
  254. package/dist/helpers/resolver.d.ts +0 -4
  255. package/dist/helpers/ts-config-paths.d.ts +0 -4
  256. package/dist/helpers/utils.js +0 -94
  257. package/dist/hmr/hmr-angular.d.ts +0 -1
  258. package/dist/hmr/hmr-angular.js +0 -34
  259. package/dist/hmr/hmr-bridge.d.ts +0 -18
  260. package/dist/hmr/hmr-bridge.js +0 -154
  261. package/dist/hmr/hmr-client.d.ts +0 -5
  262. package/dist/hmr/hmr-client.js +0 -93
  263. package/dist/hmr/hmr-server.d.ts +0 -20
  264. package/dist/hmr/hmr-server.js +0 -179
  265. package/dist/index.js +0 -5
  266. package/dist/transformers/NativeClass/index.d.ts +0 -5
  267. package/dist/transformers/NativeClass/index.js +0 -46
  268. /package/{dist/helpers → helpers}/commonjs-plugins.d.ts +0 -0
  269. /package/{dist/helpers → helpers}/css-tree.d.ts +0 -0
  270. /package/{dist/helpers → helpers}/dynamic-import-plugin.d.ts +0 -0
  271. /package/{dist/helpers → helpers}/module-resolution.d.ts +0 -0
  272. /package/{dist/helpers → helpers}/nativescript-package-resolver.d.ts +0 -0
  273. /package/{dist/helpers → helpers}/project.d.ts +0 -0
  274. /package/{dist/helpers → helpers}/workers.d.ts +0 -0
  275. /package/{dist/polyfills → polyfills}/mdn-data-at-rules.d.ts +0 -0
  276. /package/{dist/polyfills → polyfills}/mdn-data-properties.d.ts +0 -0
  277. /package/{dist/polyfills → polyfills}/mdn-data-syntaxes.d.ts +0 -0
  278. /package/{dist/polyfills → polyfills}/module.d.ts +0 -0
  279. /package/{dist/shims → shims}/react-reconciler-constants.d.ts +0 -0
  280. /package/{dist/shims → shims}/react-reconciler.d.ts +0 -0
  281. /package/{dist/shims → shims}/set-value.d.ts +0 -0
@@ -0,0 +1,491 @@
1
+ import { mergeConfig } from 'vite';
2
+ import path from 'path';
3
+ import { existsSync, readFileSync } from 'fs';
4
+ import { createRequire } from 'node:module';
5
+ import { pathToFileURL } from 'node:url';
6
+ import commonjs from '@rollup/plugin-commonjs';
7
+ import replace from '@rollup/plugin-replace';
8
+ import { viteStaticCopy } from 'vite-plugin-static-copy';
9
+ import ts from 'typescript';
10
+ import { getCliFlags } from '../helpers/cli-flags.js';
11
+ import NativeScriptPlugin from '../helpers/resolver.js';
12
+ import nsConfigAsJsonPlugin from '../helpers/config-as-json.js';
13
+ import { getProjectRootPath } from '../helpers/project.js';
14
+ import { aliasCssTree } from '../helpers/css-tree.js';
15
+ import { packagePlatformAliases } from '../helpers/package-platform-aliases.js';
16
+ import { getGlobalDefines } from '../helpers/global-defines.js';
17
+ import { getWorkerPlugins, workerUrlPlugin } from '../helpers/workers.js';
18
+ import { getTsConfigData } from '../helpers/ts-config-paths.js';
19
+ import { commonjsPlugins } from '../helpers/commonjs-plugins.js';
20
+ import { nativescriptPackageResolver } from '../helpers/nativescript-package-resolver.js';
21
+ import { cliPlugin } from '../helpers/ns-cli-plugins.js';
22
+ import { dynamicImportPlugin } from '../helpers/dynamic-import-plugin.js';
23
+ import { mainEntryPlugin } from '../helpers/main-entry.js';
24
+ import { getProjectFlavor } from '../helpers/flavor.js';
25
+ import { preserveImportsPlugin } from '../helpers/preserve-imports.js';
26
+ import { esbuildPlatformResolver } from '../helpers/esbuild-platform-resolver.js';
27
+ import { vendorManifestPlugin } from '../hmr/shared/vendor/manifest.js';
28
+ import { resolveVerboseFlag, createFilteredViteLogger } from '../helpers/logging.js';
29
+ import { externalConfigMerges, applyExternalConfigs } from '../helpers/external-configs.js';
30
+ import { getHMRPlugins } from '../hmr/server/index.js';
31
+ import { findPackageInNodeModules } from '../helpers/module-resolution.js';
32
+ import { createPlatformCssPlugin } from '../helpers/css-platform-plugin.js';
33
+ import { createNativeClassTransformerPlugin } from '../helpers/nativeclass-transformer-plugin.js';
34
+ import { getThemeCoreGenericAliases, createEnsureHoistedThemeLinkPlugin, createThemeCoreCssFallbackPlugin } from '../helpers/theme-core-plugins.js';
35
+ import { createPostCssConfig } from '../helpers/postcss-platform-config.js';
36
+ import { getProjectAppPath, getProjectAppRelativePath } from '../helpers/utils.js';
37
+ // Load HMR plugins lazily to avoid compiling dev-only sources during library build
38
+ // This prevents TypeScript from traversing the heavy HMR implementation graph when not needed
39
+ // function getHMRPluginsSafe(opts: {
40
+ // platform: string;
41
+ // flavor: string;
42
+ // verbose: boolean;
43
+ // }): any[] {
44
+ // try {
45
+ // // Use eval("require") so TypeScript doesn't statically resolve the TS sources
46
+ // // This prevents the compiler from traversing dev-only HMR code during library builds
47
+ // const req = eval("require") as NodeRequire;
48
+ // const mod = req("../hmr/server/index.js");
49
+ // if (mod && typeof mod.getHMRPlugins === "function") {
50
+ // return mod.getHMRPlugins(opts) || [];
51
+ // }
52
+ // } catch {
53
+ // /* ignore: HMR not available or excluded */
54
+ // }
55
+ // return [];
56
+ // }
57
+ const require = createRequire(import.meta.url);
58
+ // Optional PostCSS import plugin (only used if available)
59
+ // Try to load postcss-import to control CSS @import resolution simply
60
+ let postcssImport = null;
61
+ try {
62
+ // use CommonJS require to load from workspace
63
+ postcssImport = require('postcss-import');
64
+ }
65
+ catch { }
66
+ const distOutputFolder = process.env.NS_VITE_DIST_DIR || '.ns-vite-build';
67
+ // HMR dev server options with socket
68
+ const useHttps = process.env.NS_HTTPS === '1' || process.env.NS_HTTPS === 'true';
69
+ const projectRoot = getProjectRootPath();
70
+ const appSourceDir = getProjectAppPath();
71
+ const resolveFromAppRoot = (subPath) => path.resolve(projectRoot, getProjectAppRelativePath(subPath));
72
+ const appGlobPattern = `${appSourceDir}/**`;
73
+ // Resolve @nativescript/core root.
74
+ // Prefer monorepo source (packages/core) when present to match webpack5 behavior,
75
+ // else fall back to node_modules resolution.
76
+ let NS_CORE_ROOT = '';
77
+ const workspaceCorePkg = path.resolve(projectRoot, '../../packages/core/package.json');
78
+ if (existsSync(workspaceCorePkg)) {
79
+ NS_CORE_ROOT = path.dirname(workspaceCorePkg).replace(/\\/g, '/');
80
+ }
81
+ else {
82
+ const corePkg = require.resolve('@nativescript/core/package.json', { paths: [projectRoot] });
83
+ NS_CORE_ROOT = path.dirname(corePkg).replace(/\\/g, '/');
84
+ }
85
+ // Attempt to resolve hoisted workspace dependency roots from the app's project root.
86
+ // This enables monorepo usage where dependencies are declared at the workspace root
87
+ // but consumed within an app package without its own node_modules copy.
88
+ let THEME_CORE_ROOT;
89
+ const themePkgDir = findPackageInNodeModules('nativescript-theme-core', projectRoot);
90
+ if (themePkgDir && existsSync(themePkgDir)) {
91
+ THEME_CORE_ROOT = themePkgDir.replace(/\\/g, '/');
92
+ }
93
+ /**
94
+ * Plugins can define nativescript.vite.mjs
95
+ * which export Vite configs to merge into the base config.
96
+ */
97
+ applyExternalConfigs();
98
+ export const baseConfig = ({ mode, flavor }) => {
99
+ const targetMode = mode === 'development' ? 'development' : 'production';
100
+ const cliFlags = getCliFlags();
101
+ const verbose = resolveVerboseFlag({ env: process.env, cliFlags });
102
+ // console.log("cliFlags:", cliFlags);
103
+ const isDevMode = targetMode === 'development';
104
+ const debug = !!process.env.DEBUG || isDevMode;
105
+ const hmrActive = isDevMode && !!cliFlags.hmr;
106
+ let platform = cliFlags.platform;
107
+ if (cliFlags.android) {
108
+ platform = 'android';
109
+ }
110
+ else if (cliFlags.ios) {
111
+ platform = 'ios';
112
+ }
113
+ else if (cliFlags.visionos) {
114
+ platform = 'visionos';
115
+ }
116
+ if (verbose) {
117
+ console.log('--------------');
118
+ // console.log("Vite config mode:", mode);
119
+ console.log('Platform:', platform);
120
+ console.log('Mode:', targetMode);
121
+ console.log('HMR active:', hmrActive);
122
+ console.log('--------------');
123
+ }
124
+ flavor = flavor || getProjectFlavor();
125
+ if (verbose) {
126
+ console.log(`Building for ${flavor}.`);
127
+ }
128
+ // Filtered logger to suppress noisy warnings
129
+ const filteredLogger = createFilteredViteLogger();
130
+ // Create TypeScript aliases with platform support
131
+ const tsConfig = getTsConfigData({ platform, verbose });
132
+ // Common resolve configuration for both main and worker builds
133
+ // Build platform-aware extension preference order and exclude the opposite platform
134
+ const platformExtensions = (() => {
135
+ const base = ['.tsx', '.jsx', '.ts', '.js'];
136
+ const exts = [];
137
+ if (platform === 'android') {
138
+ exts.push('.android.tsx', '.tsx', '.android.jsx', '.jsx', '.android.ts', '.ts', '.android.js', '.js');
139
+ }
140
+ else if (platform === 'ios' || platform === 'visionos') {
141
+ // Treat visionOS like iOS for file resolution
142
+ exts.push('.ios.tsx', '.tsx', '.ios.jsx', '.jsx', '.ios.ts', '.ts', '.ios.js', '.js');
143
+ }
144
+ else {
145
+ // Fallback: no platform-specific preference
146
+ exts.push(...base);
147
+ }
148
+ // Always allow these last
149
+ exts.push('.mjs', '.json');
150
+ return exts;
151
+ })();
152
+ // Dynamic aliases for nativescript-theme-core generic theme filenames
153
+ // TODO: move to per-project basis based on usage
154
+ const themeGenericAliases = getThemeCoreGenericAliases(THEME_CORE_ROOT, platform);
155
+ const resolveConfig = {
156
+ // ensures Vite prefers ESM entry‑points
157
+ // A few packages have react-native specifiers which work well for NS as well
158
+ mainFields: ['module', 'react-native', 'main'],
159
+ conditions: ['module', 'react-native', 'import', 'browser', 'default'],
160
+ // use this with merge config instead or could list common dedupes in base here altogether
161
+ dedupe: ['@nativescript/core', 'nativescript-vue', 'vue'],
162
+ // Alias "@" and "~" to your src directory for cleaner imports
163
+ alias: [
164
+ // Hard dedupe for @nativescript/core across monorepos / linked workspaces
165
+ // Map all specifiers to the single resolved root under the app's node_modules
166
+ // Canonicalize trailing /index subpath imports so '@nativescript/core/foo' and '@nativescript/core/foo/index'
167
+ // resolve to the exact same module id. This prevents duplicate evaluation of core submodules (profiling, layouts)
168
+ // which can break timers, decorators and alignment tests under Vite.
169
+ { find: /^@nativescript\/core\/(.+)\/index$/, replacement: (m, sub) => `${NS_CORE_ROOT}/${sub}` },
170
+ { find: /^@nativescript\/core$/, replacement: NS_CORE_ROOT },
171
+ {
172
+ find: /^@nativescript\/core\/(.*)$/,
173
+ // Keep capture group to preserve deep paths
174
+ replacement: `${NS_CORE_ROOT}/$1`,
175
+ },
176
+ // Resolve hoisted nativescript-theme-core if present at workspace root
177
+ // Support both exact package and deep paths like nativescript-theme-core/css/core.light.css
178
+ ...(THEME_CORE_ROOT
179
+ ? [
180
+ { find: /^nativescript-theme-core$/, replacement: THEME_CORE_ROOT },
181
+ { find: /^nativescript-theme-core\/(.*)$/, replacement: `${THEME_CORE_ROOT}/$1` },
182
+ ]
183
+ : []),
184
+ // Provide a shim for node:module to avoid runtime crashes in NS
185
+ {
186
+ find: /^node:module$/,
187
+ replacement: path.resolve(path.dirname(new URL(import.meta.url).pathname), '../shims/node-module.js'),
188
+ },
189
+ // Ensure set-value resolves to an absolute shim to avoid alias warnings and duplication
190
+ { find: /^set-value$/, replacement: path.resolve(path.dirname(new URL(import.meta.url).pathname), '../shims/set-value.js') },
191
+ // nativescript-theme-core root + deep paths (hoisted resolution)
192
+ // Generic theme css -> platform specific variant
193
+ ...themeGenericAliases,
194
+ ...aliasCssTree,
195
+ // 1) Catch exactly `~/package.json` → virtual module (MUST be first!)
196
+ { find: /^~\/package\.json$/, replacement: '~/package.json' },
197
+ // TypeScript path aliases from tsconfig.json
198
+ ...tsConfig.aliases,
199
+ // Generic platform resolution for any npm package
200
+ packagePlatformAliases({ tsConfig, platform, verbose }),
201
+ // 2) Catch everything else under "~/" → your src/
202
+ { find: /^~\/(.*)$/, replacement: path.resolve(projectRoot, `${appSourceDir}/$1`) },
203
+ // optional: "@" → src/
204
+ { find: '@', replacement: path.resolve(projectRoot, appSourceDir) },
205
+ ],
206
+ extensions: platformExtensions,
207
+ preserveSymlinks: true,
208
+ };
209
+ // Common define configuration for both main and worker builds
210
+ const defineConfig = getGlobalDefines({
211
+ platform,
212
+ targetMode,
213
+ verbose,
214
+ flavor,
215
+ isCI: !!process.env.CI,
216
+ });
217
+ // Default static copy: copy/merge assets and fonts when present
218
+ const assetsDir = resolveFromAppRoot('assets');
219
+ const fontsDir = resolveFromAppRoot('fonts');
220
+ const staticCopyTargets = [];
221
+ if (existsSync(assetsDir)) {
222
+ staticCopyTargets.push({ src: `${assetsDir}/**/*`, dest: 'assets' });
223
+ }
224
+ if (existsSync(fontsDir)) {
225
+ staticCopyTargets.push({ src: `${fontsDir}/**/*`, dest: 'fonts' });
226
+ }
227
+ let disableOptimizeDeps = false;
228
+ // some flavor-specific adjustments for optimizing deps
229
+ switch (flavor) {
230
+ case 'angular':
231
+ disableOptimizeDeps = hmrActive || process.env.NS_DISABLE_OPTIMIZEDEPS === '1' || process.env.NS_DISABLE_OPTIMIZEDEPS === 'true';
232
+ break;
233
+ }
234
+ let baseViteConfig = {
235
+ // Suppress logs during HMR development if desired:
236
+ // ...(hmrActive ? { logLevel: "warn" as const } : {}),
237
+ // Filter out noisy sourcemap warnings from dependencies while keeping other warnings intact
238
+ customLogger: filteredLogger,
239
+ resolve: resolveConfig,
240
+ define: defineConfig,
241
+ // Vite's built-in solution for CommonJS/ESM compatibility issues
242
+ optimizeDeps: disableOptimizeDeps
243
+ ? {
244
+ noDiscovery: true,
245
+ include: [],
246
+ entries: [],
247
+ // Ensure rxjs and core are never treated as entries for pre-bundling
248
+ exclude: ['@nativescript/core', 'rxjs', '@valor/nativescript-websockets', 'set-value', 'react', 'react-reconciler', 'react-nativescript'],
249
+ esbuildOptions: {
250
+ conditions: ['module', 'react-native', 'import', 'browser', 'default'],
251
+ resolveExtensions: platformExtensions,
252
+ define: {
253
+ global: 'globalThis',
254
+ 'process.env.NODE_ENV': JSON.stringify(debug ? 'development' : 'production'),
255
+ },
256
+ target: 'es2020',
257
+ // Do not install the platform resolver inside optimizeDeps to avoid crawling node_modules
258
+ plugins: [],
259
+ },
260
+ }
261
+ : {
262
+ // Force pre-bundling of problematic CommonJS packages (kept empty by default)
263
+ include: [],
264
+ esbuildOptions: {
265
+ conditions: ['module', 'react-native', 'import', 'browser', 'default'],
266
+ resolveExtensions: platformExtensions,
267
+ define: {
268
+ global: 'globalThis',
269
+ 'process.env.NODE_ENV': JSON.stringify(debug ? 'development' : 'production'),
270
+ },
271
+ target: 'es2020',
272
+ plugins: [esbuildPlatformResolver({ platform, verbose })],
273
+ },
274
+ exclude: ['@nativescript/core', '@valor/nativescript-websockets', 'set-value', 'react', 'react-reconciler', 'react-nativescript'],
275
+ },
276
+ esbuild: {
277
+ define: {
278
+ 'process.env.NODE_ENV': JSON.stringify(debug ? 'development' : 'production'),
279
+ },
280
+ // Keep target loosely aligned with tsconfig target (ES2020) to avoid reordering semantics
281
+ target: 'es2020',
282
+ },
283
+ plugins: [
284
+ createPlatformCssPlugin(platform),
285
+ // TODO: move to per-project basis based on usage
286
+ createEnsureHoistedThemeLinkPlugin(THEME_CORE_ROOT, projectRoot, platform),
287
+ createNativeClassTransformerPlugin(),
288
+ createThemeCoreCssFallbackPlugin(THEME_CORE_ROOT, projectRoot, platform),
289
+ // Redirect fragment.android to a single virtual id before other resolvers
290
+ // androidBootRedirectPlugin(),
291
+ // Ensure Rollup phase replaces in node_modules too
292
+ // Important for various vendor handling
293
+ replace({
294
+ 'process.env.NODE_ENV': JSON.stringify(debug ? 'development' : 'production'),
295
+ preventAssignment: true,
296
+ }),
297
+ // Ensure explicit keep markers are honored
298
+ preserveImportsPlugin(),
299
+ hmrActive
300
+ ? vendorManifestPlugin({
301
+ projectRoot,
302
+ platform,
303
+ mode: targetMode,
304
+ verbose,
305
+ emitAssets: true,
306
+ flavor,
307
+ })
308
+ : undefined,
309
+ // Vue HMR plugins for development mode
310
+ // HMR plugins (source streaming replaces prior exploded source plugin when enabled)
311
+ ...(hmrActive ? [...getHMRPlugins({ platform, flavor, verbose })] : []),
312
+ // TODO: make flavor plugins dynamic
313
+ // ...flavorPlugins,
314
+ ...commonjsPlugins,
315
+ // Platform-specific package resolver - MUST come before commonjs plugin
316
+ nativescriptPackageResolver(platform),
317
+ // Simplified CommonJS handling - let Vite's optimizeDeps do the heavy lifting
318
+ commonjs({
319
+ include: [/node_modules/],
320
+ // Force specific problematic modules to be treated as CommonJS
321
+ requireReturnsDefault: 'auto',
322
+ defaultIsModuleExports: 'auto',
323
+ transformMixedEsModules: true,
324
+ // Ignore optional dependencies that are meant to fail gracefully
325
+ ignore: ['@nativescript/android', '@nativescript/ios'],
326
+ }),
327
+ nsConfigAsJsonPlugin(),
328
+ NativeScriptPlugin({ platform }),
329
+ // Ensure globals and Android activity are included early via virtual entry
330
+ mainEntryPlugin({ platform, isDevMode, verbose, hmrActive }),
331
+ dynamicImportPlugin(),
332
+ // Transform Vite worker URLs to NativeScript format AFTER bundling
333
+ workerUrlPlugin(),
334
+ // Copy static assets and fonts when present in project app root
335
+ ...((staticCopyTargets == null ? void 0 : staticCopyTargets.length)
336
+ ? [
337
+ viteStaticCopy({
338
+ targets: staticCopyTargets,
339
+ watch: { reloadPageOnChange: true },
340
+ }),
341
+ ]
342
+ : []),
343
+ // NativeScript CLI integration
344
+ cliPlugin({ distOutputFolder, isDevMode, verbose, hmrActive }),
345
+ ],
346
+ css: {
347
+ postcss: createPostCssConfig({
348
+ platform,
349
+ projectRoot,
350
+ themeCoreRoot: THEME_CORE_ROOT,
351
+ postcssImport,
352
+ }),
353
+ },
354
+ // Development server configuration for HMR
355
+ server: isDevMode
356
+ ? {
357
+ // Expose dev server to local network so simulator or device can connect
358
+ host: process.env.NS_HMR_HOST || (platform === 'android' ? '0.0.0.0' : 'localhost'),
359
+ // Use a stable port so the device URL remains correct
360
+ port: 5173,
361
+ strictPort: true,
362
+ https: useHttps
363
+ ? {
364
+ // Optional: allow self-signed certs via env paths
365
+ key: process.env.NS_HTTPS_KEY && readFileSync(process.env.NS_HTTPS_KEY),
366
+ cert: process.env.NS_HTTPS_CERT && readFileSync(process.env.NS_HTTPS_CERT),
367
+ }
368
+ : undefined,
369
+ // Keep HMR on the primary server port (Vite browser client stays on /vite-hmr)
370
+ hmr: {
371
+ protocol: useHttps ? 'wss' : 'ws',
372
+ path: '/vite-hmr',
373
+ },
374
+ cors: true,
375
+ // watch: {
376
+ // ignored: [
377
+ // '**/.DS_Store',
378
+ // '**/Documents/**',
379
+ // '**/hooks/**',
380
+ // '**/platforms/**'
381
+ // ]
382
+ // }
383
+ }
384
+ : {},
385
+ // Configure worker builds to bundle everything into standalone workers
386
+ worker: {
387
+ format: 'es',
388
+ plugins: () => getWorkerPlugins(platform),
389
+ rollupOptions: {
390
+ // Don't externalize anything - bundle everything into the worker
391
+ external: [],
392
+ output: {
393
+ // Inline all dynamic imports to create standalone bundle
394
+ inlineDynamicImports: true,
395
+ },
396
+ },
397
+ },
398
+ build: {
399
+ // Ensure Vite and plugins (like vite-plugin-static-copy) use the same output directory
400
+ outDir: path.resolve(projectRoot, distOutputFolder),
401
+ target: 'esnext',
402
+ minify: !debug,
403
+ // Generate source maps for debugging
404
+ // External sourcemaps so DevTools loads small .mjs files and fetches maps on demand
405
+ sourcemap: debug,
406
+ // Disable module preloading to avoid browser APIs
407
+ modulePreload: false,
408
+ // Under HMR, avoid rebuilds on app root changes — device consumes updates via /ns-hmr
409
+ ...(hmrActive && {
410
+ watch: {
411
+ exclude: [appGlobPattern],
412
+ },
413
+ }),
414
+ // Optimize for development speed
415
+ ...(isDevMode && {
416
+ // Faster builds in development
417
+ reportCompressedSize: false,
418
+ chunkSizeWarningLimit: 2000,
419
+ }),
420
+ commonjsOptions: {
421
+ include: [/node_modules/],
422
+ },
423
+ rollupOptions: {
424
+ treeshake: {
425
+ // Preserve side effects for NativeScript core so classes/functions
426
+ // aren't tree-shaken out inadvertently. This does NOT cause cross‑chunk duplication;
427
+ // it only prevents Rollup from dropping modules it considers side‑effect free.
428
+ moduleSideEffects: (id) => /node_modules[\\\/]\@nativescript[\\\/]core[\\\/]/.test(id) || null,
429
+ },
430
+ input: 'virtual:entry-with-polyfills',
431
+ output: {
432
+ format: 'es', // Emit ES modules (.mjs)
433
+ entryFileNames: 'bundle.mjs',
434
+ // Point source map URLs to absolute file:// paths on the host so
435
+ // Chrome DevTools can fetch them even though the running code comes
436
+ // from file:///app on the simulator/device.
437
+ sourcemapBaseUrl: pathToFileURL(path.resolve(projectRoot, distOutputFolder)).toString() + '/',
438
+ chunkFileNames: (chunk) => {
439
+ if (chunk.name === 'vendor')
440
+ return 'vendor.mjs';
441
+ // Place worker files at root level, not in assets/
442
+ if (chunk.name && chunk.name.includes('worker')) {
443
+ return '[name]-[hash].js';
444
+ }
445
+ return '[name]-[hash].mjs';
446
+ },
447
+ assetFileNames: 'assets/[name][extname]',
448
+ // Create single vendor chunk for most third-party modules.
449
+ // Keep critical NativeScript core bootstrap/lifecycle modules in the main bundle
450
+ // so they evaluate AFTER bundle-entry-points initialize Application.
451
+ manualChunks(id) {
452
+ // In HMR, avoid emitting a Rollup vendor chunk on disk. The dev server
453
+ // serves vendor over HTTP and we separately emit a single ns-vendor.mjs
454
+ // for Android SBG to scan via the vendorManifestPlugin above.
455
+ if (hmrActive) {
456
+ return undefined;
457
+ }
458
+ const normalizedId = id.split('?')[0].replace(/\\/g, '/');
459
+ // Ensure virtual vendor modules live in vendor.mjs
460
+ if (normalizedId.includes('@nativescript/vendor') || normalizedId.includes('@nativescript/vendor-manifest')) {
461
+ return 'vendor';
462
+ }
463
+ if (id.includes('node_modules')) {
464
+ // Keep common dependencies in the main bundle
465
+ if (id.includes('@angular/') || id.includes('@nativescript/angular') || id.includes('@nativescript/core')) {
466
+ return undefined; // Keep in main bundle
467
+ }
468
+ return 'vendor';
469
+ }
470
+ },
471
+ },
472
+ // When HMR is active, prevent Vite's build watcher from reacting to source folder changes.
473
+ // The device will get updates via socket /ns-hmr instead.
474
+ ...(hmrActive
475
+ ? {
476
+ watch: {
477
+ exclude: [appGlobPattern],
478
+ },
479
+ }
480
+ : {}),
481
+ },
482
+ },
483
+ };
484
+ if (externalConfigMerges?.length) {
485
+ externalConfigMerges.forEach((config) => {
486
+ baseViteConfig = mergeConfig(baseViteConfig, config);
487
+ });
488
+ }
489
+ return baseViteConfig;
490
+ };
491
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../packages/vite/configuration/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAmB,MAAM,MAAM,CAAC;AACpD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,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