@leadconnector/vite-tanstack-config 0.1.0-beta.3 → 0.2.0-beta.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.
package/dist/index.cjs CHANGED
@@ -79,9 +79,22 @@ function defineConfig(options = {}) {
79
79
  return async ({ command, mode }) => {
80
80
  const isSandbox = isSandboxEnvironment();
81
81
  const plugins = [];
82
+ if (mode === "development") {
83
+ const { devtools } = await import("@tanstack/devtools-vite");
84
+ plugins.push(
85
+ devtools({
86
+ logging: false,
87
+ eventBusConfig: { enabled: false },
88
+ enhancedLogs: { enabled: false },
89
+ consolePiping: { enabled: false },
90
+ removeDevtoolsOnBuild: false,
91
+ injectSource: { enabled: true }
92
+ })
93
+ );
94
+ }
82
95
  if (command === "serve" && mode === "development") {
83
96
  plugins.push(
84
- (0, import_vibe_tagger.componentTagger)({ jsxSource: true, sourceInjection: true, tailwindConfig: true })
97
+ (0, import_vibe_tagger.componentTagger)({ jsxSource: true, sourceInjection: false, tailwindConfig: true })
85
98
  );
86
99
  }
87
100
  const tailwindcss = (await import("@tailwindcss/vite")).default;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/env.ts","../src/nitro.ts","../src/server.ts"],"sourcesContent":["import type { ConfigEnv, PluginOption, UserConfig } from \"vite\";\nimport { componentTagger } from \"@leadconnector/vibe-tagger\";\nimport { isSandboxEnvironment } from \"./env\";\nimport { shouldRunNitro, buildNitroOptions } from \"./nitro\";\nimport { serverConfig } from \"./server\";\n\nexport interface LeadConnectorViteTanstackOptions {\n plugins?: PluginOption[];\n vite?: UserConfig;\n nitro?: true | false | Record<string, unknown>;\n tanstackStart?: Record<string, unknown>;\n react?: Record<string, unknown>;\n}\n\nexport function defineConfig(\n options: LeadConnectorViteTanstackOptions = {}\n): (env: ConfigEnv) => Promise<UserConfig> {\n return async ({ command, mode }: ConfigEnv): Promise<UserConfig> => {\n const isSandbox = isSandboxEnvironment();\n const plugins: PluginOption[] = [];\n\n // FIRST: tagger with enforce:'pre' must run before tanstackStart splits/HMR-injects the module.\n // sourceInjection:true is the whole point of this package (approach-3 wiring, plan 2026-06-22).\n if (command === \"serve\" && mode === \"development\") {\n plugins.push(\n componentTagger({ jsxSource: true, sourceInjection: true, tailwindConfig: true })\n );\n }\n\n const tailwindcss = (await import(\"@tailwindcss/vite\")).default;\n const tsConfigPaths = (await import(\"vite-tsconfig-paths\")).default;\n const { tanstackStart } = await import(\"@tanstack/react-start/plugin/vite\");\n const viteReact = (await import(\"@vitejs/plugin-react\")).default;\n\n plugins.push(tailwindcss());\n plugins.push(tsConfigPaths({ projects: [\"./tsconfig.json\"] }));\n plugins.push(tanstackStart(options.tanstackStart ?? {}));\n\n if (shouldRunNitro(command as \"build\" | \"serve\", options.nitro, isSandbox)) {\n // nitro is an optional peer dep — dynamic import avoids requiring its types at build time\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n const nitroMod = await import(\"nitro/vite\");\n // nitro/vite exports a NAMED `nitro` function (`export { nitro }`) — no\n // default. Falling back to the namespace object crashes the build with\n // \"nitroFn is not a function\", so fail loud with a useful message instead.\n const nitroFn =\n (nitroMod as { nitro?: unknown }).nitro ??\n (nitroMod as { default?: unknown }).default;\n if (typeof nitroFn !== \"function\") {\n throw new Error(\n \"[@leadconnector/vite-tanstack-config] could not resolve the `nitro` plugin \" +\n \"function from `nitro/vite` (expected a named `nitro` export). \" +\n `Installed nitro exports: ${Object.keys(nitroMod as object).join(\", \") || \"(none)\"}. ` +\n \"Check the installed `nitro` version (peerDependency >=3.0.260603-beta).\",\n );\n }\n plugins.push((nitroFn as (o: unknown) => PluginOption)(buildNitroOptions(options.nitro, isSandbox)));\n }\n\n plugins.push(viteReact(options.react ?? {}));\n\n // NOTE: HMR-gate and dev-server-bridge plugins intentionally omitted for now —\n // we'll ship our own equivalents later (not a priority). No @lovable.dev deps.\n\n const { plugins: extraPlugins, server: extraServer, ...restVite } = options.vite ?? {};\n\n return {\n plugins: [...plugins, ...(options.plugins ?? []), ...(extraPlugins ? (Array.isArray(extraPlugins) ? extraPlugins : [extraPlugins]) : [])],\n server: { ...serverConfig(isSandbox), ...extraServer },\n css: { transformer: \"lightningcss\" },\n ...restVite,\n } as UserConfig;\n };\n}\n","export const SANDBOX_ENV_VAR = \"DEV_SERVER__PROJECT_PATH\";\nexport const LOVABLE_SANDBOX_ENV_VAR = \"LOVABLE_SANDBOX\";\n\nexport function isSandboxEnvironment(): boolean {\n return process.env[LOVABLE_SANDBOX_ENV_VAR] === \"1\" || !!process.env[SANDBOX_ENV_VAR];\n}\n","export function shouldRunNitro(command: \"build\" | \"serve\", nitroOpt: unknown, isSandbox: boolean): boolean {\n const explicit = nitroOpt === true || (typeof nitroOpt === \"object\" && nitroOpt !== null);\n return nitroOpt !== false && command === \"build\" && (explicit || isSandbox);\n}\n\nexport function buildNitroOptions(nitroOpt: unknown, isSandbox: boolean): Record<string, unknown> {\n const user = typeof nitroOpt === \"object\" && nitroOpt ? (nitroOpt as Record<string, unknown>) : {};\n const opts: Record<string, unknown> = { defaultPreset: \"cloudflare-module\", ...user };\n if (isSandbox) {\n delete opts.defaultPreset;\n opts.preset = \"cloudflare-module\";\n opts.output = { dir: \"dist\", serverDir: \"dist/server\", publicDir: \"dist/client\" };\n opts.cloudflare = { nodeCompat: true, deployConfig: true, ...(user.cloudflare as object | undefined) };\n }\n return opts;\n}\n","import type { UserConfig } from \"vite\";\n\nexport const TOOL_MANAGED_WATCH_IGNORES = [\n \"**/.workspace/**\",\n \"**/.agents/**\",\n \"**/.claude/**\",\n \"**/.lovable/**\",\n \"**/.tanstack/tmp/**\",\n];\n\nexport function serverConfig(isSandbox: boolean): UserConfig[\"server\"] {\n if (isSandbox) {\n return { host: \"::\", port: 8080, strictPort: true, watch: { ignored: TOOL_MANAGED_WATCH_IGNORES } };\n }\n return { host: \"::\", port: 8080 };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAA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Config } from \"vite\";\nimport { componentTagger } from \"@leadconnector/vibe-tagger\";\nimport { isSandboxEnvironment } from \"./env\";\nimport { shouldRunNitro, buildNitroOptions } from \"./nitro\";\nimport { serverConfig } from \"./server\";\n\nexport interface LeadConnectorViteTanstackOptions {\n plugins?: PluginOption[];\n vite?: UserConfig;\n nitro?: true | false | Record<string, unknown>;\n tanstackStart?: Record<string, unknown>;\n react?: Record<string, unknown>;\n}\n\nexport function defineConfig(\n options: LeadConnectorViteTanstackOptions = {}\n): (env: ConfigEnv) => Promise<UserConfig> {\n return async ({ command, mode }: ConfigEnv): Promise<UserConfig> => {\n const isSandbox = isSandboxEnvironment();\n const plugins: PluginOption[] = [];\n\n if (mode === \"development\") {\n // FIRST: TanStack's official source instrumentation. Its inject-source\n // plugin is enforce:'pre' and, being first in the array, transforms the\n // ORIGINAL route module before tanstackStart's splitter — so\n // data-tsd-source carries canonical file:line:col (file cwd-relative\n // with leading slash, 1-indexed line, 1-indexed column of \"<\" which\n // numerically equals the pipeline's 0-indexed tag-name column). Every\n // devtools feature except injectSource is disabled — the identical flag\n // set @lovable.dev/vite-tanstack-config@2.7.7 ships. Its own `apply`\n // additionally gates to development mode.\n const { devtools } = await import(\"@tanstack/devtools-vite\");\n plugins.push(\n devtools({\n logging: false,\n eventBusConfig: { enabled: false },\n enhancedLogs: { enabled: false },\n consolePiping: { enabled: false },\n removeDevtoolsOnBuild: false,\n injectSource: { enabled: true },\n })\n );\n }\n\n // Tagger: keeps the __jsxSource__/sourceElementMap runtime (the handler's\n // second-priority fallback) and the tailwind config extraction the theme\n // flow depends on. sourceInjection is OFF — data-tsd-source supersedes it\n // (research: vibe-platform repo, docs/superpowers/research/2026-07-22-visual-edits-tsd-source-parity.md).\n if (command === \"serve\" && mode === \"development\") {\n plugins.push(\n componentTagger({ jsxSource: true, sourceInjection: false, tailwindConfig: true })\n );\n }\n\n const tailwindcss = (await import(\"@tailwindcss/vite\")).default;\n const tsConfigPaths = (await import(\"vite-tsconfig-paths\")).default;\n const { tanstackStart } = await import(\"@tanstack/react-start/plugin/vite\");\n const viteReact = (await import(\"@vitejs/plugin-react\")).default;\n\n plugins.push(tailwindcss());\n plugins.push(tsConfigPaths({ projects: [\"./tsconfig.json\"] }));\n plugins.push(tanstackStart(options.tanstackStart ?? {}));\n\n if (shouldRunNitro(command as \"build\" | \"serve\", options.nitro, isSandbox)) {\n // nitro is an optional peer dep — dynamic import avoids requiring its types at build time\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n const nitroMod = await import(\"nitro/vite\");\n // nitro/vite exports a NAMED `nitro` function (`export { nitro }`) — no\n // default. Falling back to the namespace object crashes the build with\n // \"nitroFn is not a function\", so fail loud with a useful message instead.\n const nitroFn =\n (nitroMod as { nitro?: unknown }).nitro ??\n (nitroMod as { default?: unknown }).default;\n if (typeof nitroFn !== \"function\") {\n throw new Error(\n \"[@leadconnector/vite-tanstack-config] could not resolve the `nitro` plugin \" +\n \"function from `nitro/vite` (expected a named `nitro` export). \" +\n `Installed nitro exports: ${Object.keys(nitroMod as object).join(\", \") || \"(none)\"}. ` +\n \"Check the installed `nitro` version (peerDependency >=3.0.260603-beta).\",\n );\n }\n plugins.push((nitroFn as (o: unknown) => PluginOption)(buildNitroOptions(options.nitro, isSandbox)));\n }\n\n plugins.push(viteReact(options.react ?? {}));\n\n // NOTE: HMR-gate and dev-server-bridge plugins intentionally omitted for now —\n // we'll ship our own equivalents later (not a priority). No @lovable.dev deps.\n\n const { plugins: extraPlugins, server: extraServer, ...restVite } = options.vite ?? {};\n\n return {\n plugins: [...plugins, ...(options.plugins ?? []), ...(extraPlugins ? (Array.isArray(extraPlugins) ? extraPlugins : [extraPlugins]) : [])],\n server: { ...serverConfig(isSandbox), ...extraServer },\n css: { transformer: \"lightningcss\" },\n ...restVite,\n } as UserConfig;\n };\n}\n","export const SANDBOX_ENV_VAR = \"DEV_SERVER__PROJECT_PATH\";\nexport const LOVABLE_SANDBOX_ENV_VAR = \"LOVABLE_SANDBOX\";\n\nexport function isSandboxEnvironment(): boolean {\n return process.env[LOVABLE_SANDBOX_ENV_VAR] === \"1\" || !!process.env[SANDBOX_ENV_VAR];\n}\n","export function shouldRunNitro(command: \"build\" | \"serve\", nitroOpt: unknown, isSandbox: boolean): boolean {\n const explicit = nitroOpt === true || (typeof nitroOpt === \"object\" && nitroOpt !== null);\n return nitroOpt !== false && command === \"build\" && (explicit || isSandbox);\n}\n\nexport function buildNitroOptions(nitroOpt: unknown, isSandbox: boolean): Record<string, unknown> {\n const user = typeof nitroOpt === \"object\" && nitroOpt ? (nitroOpt as Record<string, unknown>) : {};\n const opts: Record<string, unknown> = { defaultPreset: \"cloudflare-module\", ...user };\n if (isSandbox) {\n delete opts.defaultPreset;\n opts.preset = \"cloudflare-module\";\n opts.output = { dir: \"dist\", serverDir: \"dist/server\", publicDir: \"dist/client\" };\n opts.cloudflare = { nodeCompat: true, deployConfig: true, ...(user.cloudflare as object | undefined) };\n }\n return opts;\n}\n","import type { UserConfig } from \"vite\";\n\nexport const TOOL_MANAGED_WATCH_IGNORES = [\n \"**/.workspace/**\",\n \"**/.agents/**\",\n \"**/.claude/**\",\n \"**/.lovable/**\",\n \"**/.tanstack/tmp/**\",\n];\n\nexport function serverConfig(isSandbox: boolean): UserConfig[\"server\"] {\n if (isSandbox) {\n return { host: \"::\", port: 8080, strictPort: true, watch: { ignored: TOOL_MANAGED_WATCH_IGNORES } };\n }\n return { host: \"::\", port: 8080 };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,yBAAgC;;;ACDzB,IAAM,kBAAkB;AACxB,IAAM,0BAA0B;AAEhC,SAAS,uBAAgC;AAC9C,SAAO,QAAQ,IAAI,uBAAuB,MAAM,OAAO,CAAC,CAAC,QAAQ,IAAI,eAAe;AACtF;;;ACLO,SAAS,eAAe,SAA4B,UAAmB,WAA6B;AACzG,QAAM,WAAW,aAAa,QAAS,OAAO,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 +45,22 @@ function defineConfig(options = {}) {
45
45
  return async ({ command, mode }) => {
46
46
  const isSandbox = isSandboxEnvironment();
47
47
  const plugins = [];
48
+ if (mode === "development") {
49
+ const { devtools } = await import("@tanstack/devtools-vite");
50
+ plugins.push(
51
+ devtools({
52
+ logging: false,
53
+ eventBusConfig: { enabled: false },
54
+ enhancedLogs: { enabled: false },
55
+ consolePiping: { enabled: false },
56
+ removeDevtoolsOnBuild: false,
57
+ injectSource: { enabled: true }
58
+ })
59
+ );
60
+ }
48
61
  if (command === "serve" && mode === "development") {
49
62
  plugins.push(
50
- componentTagger({ jsxSource: true, sourceInjection: true, tailwindConfig: true })
63
+ componentTagger({ jsxSource: true, sourceInjection: false, tailwindConfig: true })
51
64
  );
52
65
  }
53
66
  const tailwindcss = (await import("@tailwindcss/vite")).default;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/env.ts","../src/nitro.ts","../src/server.ts"],"sourcesContent":["import type { ConfigEnv, PluginOption, UserConfig } from \"vite\";\nimport { componentTagger } from \"@leadconnector/vibe-tagger\";\nimport { isSandboxEnvironment } from \"./env\";\nimport { shouldRunNitro, buildNitroOptions } from \"./nitro\";\nimport { serverConfig } from \"./server\";\n\nexport interface LeadConnectorViteTanstackOptions {\n plugins?: PluginOption[];\n vite?: UserConfig;\n nitro?: true | false | Record<string, unknown>;\n tanstackStart?: Record<string, unknown>;\n react?: Record<string, unknown>;\n}\n\nexport function defineConfig(\n options: LeadConnectorViteTanstackOptions = {}\n): (env: ConfigEnv) => Promise<UserConfig> {\n return async ({ command, mode }: ConfigEnv): Promise<UserConfig> => {\n const isSandbox = isSandboxEnvironment();\n const plugins: PluginOption[] = [];\n\n // FIRST: tagger with enforce:'pre' must run before tanstackStart splits/HMR-injects the module.\n // sourceInjection:true is the whole point of this package (approach-3 wiring, plan 2026-06-22).\n if (command === \"serve\" && mode === \"development\") {\n plugins.push(\n componentTagger({ jsxSource: true, sourceInjection: true, tailwindConfig: true })\n );\n }\n\n const tailwindcss = (await import(\"@tailwindcss/vite\")).default;\n const tsConfigPaths = (await import(\"vite-tsconfig-paths\")).default;\n const { tanstackStart } = await import(\"@tanstack/react-start/plugin/vite\");\n const viteReact = (await import(\"@vitejs/plugin-react\")).default;\n\n plugins.push(tailwindcss());\n plugins.push(tsConfigPaths({ projects: [\"./tsconfig.json\"] }));\n plugins.push(tanstackStart(options.tanstackStart ?? {}));\n\n if (shouldRunNitro(command as \"build\" | \"serve\", options.nitro, isSandbox)) {\n // nitro is an optional peer dep — dynamic import avoids requiring its types at build time\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n const nitroMod = await import(\"nitro/vite\");\n // nitro/vite exports a NAMED `nitro` function (`export { nitro }`) — no\n // default. Falling back to the namespace object crashes the build with\n // \"nitroFn is not a function\", so fail loud with a useful message instead.\n const nitroFn =\n (nitroMod as { nitro?: unknown }).nitro ??\n (nitroMod as { default?: unknown }).default;\n if (typeof nitroFn !== \"function\") {\n throw new Error(\n \"[@leadconnector/vite-tanstack-config] could not resolve the `nitro` plugin \" +\n \"function from `nitro/vite` (expected a named `nitro` export). \" +\n `Installed nitro exports: ${Object.keys(nitroMod as object).join(\", \") || \"(none)\"}. ` +\n \"Check the installed `nitro` version (peerDependency >=3.0.260603-beta).\",\n );\n }\n plugins.push((nitroFn as (o: unknown) => PluginOption)(buildNitroOptions(options.nitro, isSandbox)));\n }\n\n plugins.push(viteReact(options.react ?? {}));\n\n // NOTE: HMR-gate and dev-server-bridge plugins intentionally omitted for now —\n // we'll ship our own equivalents later (not a priority). No @lovable.dev deps.\n\n const { plugins: extraPlugins, server: extraServer, ...restVite } = options.vite ?? {};\n\n return {\n plugins: [...plugins, ...(options.plugins ?? []), ...(extraPlugins ? (Array.isArray(extraPlugins) ? extraPlugins : [extraPlugins]) : [])],\n server: { ...serverConfig(isSandbox), ...extraServer },\n css: { transformer: \"lightningcss\" },\n ...restVite,\n } as UserConfig;\n };\n}\n","export const SANDBOX_ENV_VAR = \"DEV_SERVER__PROJECT_PATH\";\nexport const LOVABLE_SANDBOX_ENV_VAR = \"LOVABLE_SANDBOX\";\n\nexport function isSandboxEnvironment(): boolean {\n return process.env[LOVABLE_SANDBOX_ENV_VAR] === \"1\" || !!process.env[SANDBOX_ENV_VAR];\n}\n","export function shouldRunNitro(command: \"build\" | \"serve\", nitroOpt: unknown, isSandbox: boolean): boolean {\n const explicit = nitroOpt === true || (typeof nitroOpt === \"object\" && nitroOpt !== null);\n return nitroOpt !== false && command === \"build\" && (explicit || isSandbox);\n}\n\nexport function buildNitroOptions(nitroOpt: unknown, isSandbox: boolean): Record<string, unknown> {\n const user = typeof nitroOpt === \"object\" && nitroOpt ? (nitroOpt as Record<string, unknown>) : {};\n const opts: Record<string, unknown> = { defaultPreset: \"cloudflare-module\", ...user };\n if (isSandbox) {\n delete opts.defaultPreset;\n opts.preset = \"cloudflare-module\";\n opts.output = { dir: \"dist\", serverDir: \"dist/server\", publicDir: \"dist/client\" };\n opts.cloudflare = { nodeCompat: true, deployConfig: true, ...(user.cloudflare as object | undefined) };\n }\n return opts;\n}\n","import type { UserConfig } from \"vite\";\n\nexport const TOOL_MANAGED_WATCH_IGNORES = [\n \"**/.workspace/**\",\n \"**/.agents/**\",\n \"**/.claude/**\",\n \"**/.lovable/**\",\n \"**/.tanstack/tmp/**\",\n];\n\nexport function serverConfig(isSandbox: boolean): UserConfig[\"server\"] {\n if (isSandbox) {\n return { host: \"::\", port: 8080, strictPort: true, watch: { ignored: TOOL_MANAGED_WATCH_IGNORES } };\n }\n return { host: \"::\", port: 8080 };\n}\n"],"mappings":";AACA,SAAS,uBAAuB;;;ACDzB,IAAM,kBAAkB;AACxB,IAAM,0BAA0B;AAEhC,SAAS,uBAAgC;AAC9C,SAAO,QAAQ,IAAI,uBAAuB,MAAM,OAAO,CAAC,CAAC,QAAQ,IAAI,eAAe;AACtF;;;ACLO,SAAS,eAAe,SAA4B,UAAmB,WAA6B;AACzG,Q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AAK,cAAc,EAAE,UAAU,CAAC,iBAAiB,EAAE,CAAC,CAAC;AAC7D,YAAQ,KAAK,cAAc,QAAQ,iBAAiB,CAAC,CAAC,CAAC;AAEvD,QAAI,eAAe,SAA8B,QAAQ,OAAO,SAAS,GAAG;AAI1E,YAAM,WAAW,MAAM,OAAO,YAAY;AAI1C,YAAM,UACH,SAAiC,SACjC,SAAmC;AACtC,UAAI,OAAO,YAAY,YAAY;AACjC,cAAM,IAAI;AAAA,UACR,2KAE8B,OAAO,KAAK,QAAkB,EAAE,KAAK,IAAI,KAAK,QAAQ;AAAA,QAEtF;AAAA,MACF;AACA,cAAQ,KAAM,QAAyC,kBAAkB,QAAQ,OAAO,SAAS,CAAC,CAAC;AAAA,IACrG;AAEA,YAAQ,KAAK,UAAU,QAAQ,SAAS,CAAC,CAAC,CAAC;AAK3C,UAAM,EAAE,SAAS,cAAc,QAAQ,aAAa,GAAG,SAAS,IAAI,QAAQ,QAAQ,CAAC;AAErF,WAAO;AAAA,MACL,SAAS,CAAC,GAAG,SAAS,GAAI,QAAQ,WAAW,CAAC,GAAI,GAAI,eAAgB,MAAM,QAAQ,YAAY,IAAI,eAAe,CAAC,YAAY,IAAK,CAAC,CAAE;AAAA,MACxI,QAAQ,EAAE,GAAG,aAAa,SAAS,GAAG,GAAG,YAAY;AAAA,MACrD,KAAK,EAAE,aAAa,eAAe;AAAA,MACnC,GAAG;AAAA,IACL;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts","../src/env.ts","../src/nitro.ts","../src/server.ts"],"sourcesContent":["import type { ConfigEnv, PluginOption, UserConfig } from \"vite\";\nimport { componentTagger } from \"@leadconnector/vibe-tagger\";\nimport { isSandboxEnvironment } from \"./env\";\nimport { shouldRunNitro, buildNitroOptions } from \"./nitro\";\nimport { serverConfig } from \"./server\";\n\nexport interface LeadConnectorViteTanstackOptions {\n plugins?: PluginOption[];\n vite?: UserConfig;\n nitro?: true | false | Record<string, unknown>;\n tanstackStart?: Record<string, unknown>;\n react?: Record<string, unknown>;\n}\n\nexport function defineConfig(\n options: LeadConnectorViteTanstackOptions = {}\n): (env: ConfigEnv) => Promise<UserConfig> {\n return async ({ command, mode }: ConfigEnv): Promise<UserConfig> => {\n const isSandbox = isSandboxEnvironment();\n const plugins: PluginOption[] = [];\n\n if (mode === \"development\") {\n // FIRST: TanStack's official source instrumentation. Its inject-source\n // plugin is enforce:'pre' and, being first in the array, transforms the\n // ORIGINAL route module before tanstackStart's splitter — so\n // data-tsd-source carries canonical file:line:col (file cwd-relative\n // with leading slash, 1-indexed line, 1-indexed column of \"<\" which\n // numerically equals the pipeline's 0-indexed tag-name column). Every\n // devtools feature except injectSource is disabled — the identical flag\n // set @lovable.dev/vite-tanstack-config@2.7.7 ships. Its own `apply`\n // additionally gates to development mode.\n const { devtools } = await import(\"@tanstack/devtools-vite\");\n plugins.push(\n devtools({\n logging: false,\n eventBusConfig: { enabled: false },\n enhancedLogs: { enabled: false },\n consolePiping: { enabled: false },\n removeDevtoolsOnBuild: false,\n injectSource: { enabled: true },\n })\n );\n }\n\n // Tagger: keeps the __jsxSource__/sourceElementMap runtime (the handler's\n // second-priority fallback) and the tailwind config extraction the theme\n // flow depends on. sourceInjection is OFF — data-tsd-source supersedes it\n // (research: vibe-platform repo, docs/superpowers/research/2026-07-22-visual-edits-tsd-source-parity.md).\n if (command === \"serve\" && mode === \"development\") {\n plugins.push(\n componentTagger({ jsxSource: true, sourceInjection: false, tailwindConfig: true })\n );\n }\n\n const tailwindcss = (await import(\"@tailwindcss/vite\")).default;\n const tsConfigPaths = (await import(\"vite-tsconfig-paths\")).default;\n const { tanstackStart } = await import(\"@tanstack/react-start/plugin/vite\");\n const viteReact = (await import(\"@vitejs/plugin-react\")).default;\n\n plugins.push(tailwindcss());\n plugins.push(tsConfigPaths({ projects: [\"./tsconfig.json\"] }));\n plugins.push(tanstackStart(options.tanstackStart ?? {}));\n\n if (shouldRunNitro(command as \"build\" | \"serve\", options.nitro, isSandbox)) {\n // nitro is an optional peer dep — dynamic import avoids requiring its types at build time\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n const nitroMod = await import(\"nitro/vite\");\n // nitro/vite exports a NAMED `nitro` function (`export { nitro }`) — no\n // default. Falling back to the namespace object crashes the build with\n // \"nitroFn is not a function\", so fail loud with a useful message instead.\n const nitroFn =\n (nitroMod as { nitro?: unknown }).nitro ??\n (nitroMod as { default?: unknown }).default;\n if (typeof nitroFn !== \"function\") {\n throw new Error(\n \"[@leadconnector/vite-tanstack-config] could not resolve the `nitro` plugin \" +\n \"function from `nitro/vite` (expected a named `nitro` export). \" +\n `Installed nitro exports: ${Object.keys(nitroMod as object).join(\", \") || \"(none)\"}. ` +\n \"Check the installed `nitro` version (peerDependency >=3.0.260603-beta).\",\n );\n }\n plugins.push((nitroFn as (o: unknown) => PluginOption)(buildNitroOptions(options.nitro, isSandbox)));\n }\n\n plugins.push(viteReact(options.react ?? {}));\n\n // NOTE: HMR-gate and dev-server-bridge plugins intentionally omitted for now —\n // we'll ship our own equivalents later (not a priority). No @lovable.dev deps.\n\n const { plugins: extraPlugins, server: extraServer, ...restVite } = options.vite ?? {};\n\n return {\n plugins: [...plugins, ...(options.plugins ?? []), ...(extraPlugins ? (Array.isArray(extraPlugins) ? extraPlugins : [extraPlugins]) : [])],\n server: { ...serverConfig(isSandbox), ...extraServer },\n css: { transformer: \"lightningcss\" },\n ...restVite,\n } as UserConfig;\n };\n}\n","export const SANDBOX_ENV_VAR = \"DEV_SERVER__PROJECT_PATH\";\nexport const LOVABLE_SANDBOX_ENV_VAR = \"LOVABLE_SANDBOX\";\n\nexport function isSandboxEnvironment(): boolean {\n return process.env[LOVABLE_SANDBOX_ENV_VAR] === \"1\" || !!process.env[SANDBOX_ENV_VAR];\n}\n","export function shouldRunNitro(command: \"build\" | \"serve\", nitroOpt: unknown, isSandbox: boolean): boolean {\n const explicit = nitroOpt === true || (typeof nitroOpt === \"object\" && nitroOpt !== null);\n return nitroOpt !== false && command === \"build\" && (explicit || isSandbox);\n}\n\nexport function buildNitroOptions(nitroOpt: unknown, isSandbox: boolean): Record<string, unknown> {\n const user = typeof nitroOpt === \"object\" && nitroOpt ? (nitroOpt as Record<string, unknown>) : {};\n const opts: Record<string, unknown> = { defaultPreset: \"cloudflare-module\", ...user };\n if (isSandbox) {\n delete opts.defaultPreset;\n opts.preset = \"cloudflare-module\";\n opts.output = { dir: \"dist\", serverDir: \"dist/server\", publicDir: \"dist/client\" };\n opts.cloudflare = { nodeCompat: true, deployConfig: true, ...(user.cloudflare as object | undefined) };\n }\n return opts;\n}\n","import type { UserConfig } from \"vite\";\n\nexport const TOOL_MANAGED_WATCH_IGNORES = [\n \"**/.workspace/**\",\n \"**/.agents/**\",\n \"**/.claude/**\",\n \"**/.lovable/**\",\n \"**/.tanstack/tmp/**\",\n];\n\nexport function serverConfig(isSandbox: boolean): UserConfig[\"server\"] {\n if (isSandbox) {\n return { host: \"::\", port: 8080, strictPort: true, watch: { ignored: TOOL_MANAGED_WATCH_IGNORES } };\n }\n return { host: \"::\", port: 8080 };\n}\n"],"mappings":";AACA,SAAS,uBAAuB;;;ACDzB,IAAM,kBAAkB;AACxB,IAAM,0BAA0B;AAEhC,SAAS,uBAAgC;AAC9C,SAAO,QAAQ,IAAI,uBAAuB,MAAM,OAAO,CAAC,CAAC,QAAQ,IAAI,eAAe;AACtF;;;ACLO,SAAS,eAAe,SAA4B,UAAmB,WAA6B;AACzG,QAAM,WAAW,aAAa,QAAS,OAAO,aAAa,YAAY,aAAa;AACpF,SAAO,aAAa,SAAS,YAAY,YAAY,YAAY;AACnE;AAEO,SAAS,kBAAkB,UAAmB,WAA6C;AAChG,QAAM,OAAO,OAAO,aAAa,YAAY,WAAY,WAAuC,CAAC;AACjG,QAAM,OAAgC,EAAE,eAAe,qBAAqB,GAAG,KAAK;AACpF,MAAI,WAAW;AACb,WAAO,KAAK;AACZ,SAAK,SAAS;AACd,SAAK,SAAS,EAAE,KAAK,QA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,YAAQ,KAAK,cAAc,EAAE,UAAU,CAAC,iBAAiB,EAAE,CAAC,CAAC;AAC7D,YAAQ,KAAK,cAAc,QAAQ,iBAAiB,CAAC,CAAC,CAAC;AAEvD,QAAI,eAAe,SAA8B,QAAQ,OAAO,SAAS,GAAG;AAI1E,YAAM,WAAW,MAAM,OAAO,YAAY;AAI1C,YAAM,UACH,SAAiC,SACjC,SAAmC;AACtC,UAAI,OAAO,YAAY,YAAY;AACjC,cAAM,IAAI;AAAA,UACR,2KAE8B,OAAO,KAAK,QAAkB,EAAE,KAAK,IAAI,KAAK,QAAQ;AAAA,QAEtF;AAAA,MACF;AACA,cAAQ,KAAM,QAAyC,kBAAkB,QAAQ,OAAO,SAAS,CAAC,CAAC;AAAA,IACrG;AAEA,YAAQ,KAAK,UAAU,QAAQ,SAAS,CAAC,CAAC,CAAC;AAK3C,UAAM,EAAE,SAAS,cAAc,QAAQ,aAAa,GAAG,SAAS,IAAI,QAAQ,QAAQ,CAAC;AAErF,WAAO;AAAA,MACL,SAAS,CAAC,GAAG,SAAS,GAAI,QAAQ,WAAW,CAAC,GAAI,GAAI,eAAgB,MAAM,QAAQ,YAAY,IAAI,eAAe,CAAC,YAAY,IAAK,CAAC,CAAE;AAAA,MACxI,QAAQ,EAAE,GAAG,aAAa,SAAS,GAAG,GAAG,YAAY;AAAA,MACrD,KAAK,EAAE,aAAa,eAAe;AAAA,MACnC,GAAG;AAAA,IACL;AAAA,EACF;AACF;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leadconnector/vite-tanstack-config",
3
- "version": "0.1.0-beta.3",
3
+ "version": "0.2.0-beta.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -14,6 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@leadconnector/vibe-tagger": "0.4.0-beta.1",
17
+ "@tanstack/devtools-vite": "0.8.1",
17
18
  "lightningcss": "^1.30.0"
18
19
  },
19
20
  "peerDependencies": {