@tanstack/start-plugin-core 1.133.27 → 1.133.28

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.
@@ -11,7 +11,7 @@ const ENTRY_POINTS = {
11
11
  start: "#tanstack-start-entry",
12
12
  router: "#tanstack-router-entry"
13
13
  };
14
- const TRANSFORM_ID_REGEX = [/\.[cm]?[tj]sx?/];
14
+ const TRANSFORM_ID_REGEX = [/\.[cm]?[tj]sx?($|\?)/];
15
15
  export {
16
16
  ENTRY_POINTS,
17
17
  TRANSFORM_ID_REGEX,
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../src/constants.ts"],"sourcesContent":["export const VITE_ENVIRONMENT_NAMES = {\n // 'ssr' is chosen as the name for the server environment to ensure backwards compatibility\n // with vite plugins that are not compatible with the new vite environment API (e.g. tailwindcss)\n server: 'ssr',\n client: 'client',\n} as const\n\nexport type ViteEnvironmentNames =\n (typeof VITE_ENVIRONMENT_NAMES)[keyof typeof VITE_ENVIRONMENT_NAMES]\n\n// for client and router:\n// if a user has a custom server/client entry point file, resolve.alias will point to this\n// otherwise it will be aliased to the default entry point in the respective framework plugin\nexport const ENTRY_POINTS = {\n client: 'virtual:tanstack-start-client-entry',\n server: 'virtual:tanstack-start-server-entry',\n // the start entry point must always be provided by the user\n start: '#tanstack-start-entry',\n router: '#tanstack-router-entry',\n} as const\n\nexport const TRANSFORM_ID_REGEX = [/\\.[cm]?[tj]sx?/]\n"],"names":[],"mappings":"AAAO,MAAM,yBAAyB;AAAA;AAAA;AAAA,EAGpC,QAAQ;AAAA,EACR,QAAQ;AACV;AAQO,MAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,QAAQ;AAAA;AAAA,EAER,OAAO;AAAA,EACP,QAAQ;AACV;AAEO,MAAM,qBAAqB,CAAC,gBAAgB;"}
1
+ {"version":3,"file":"constants.js","sources":["../../src/constants.ts"],"sourcesContent":["export const VITE_ENVIRONMENT_NAMES = {\n // 'ssr' is chosen as the name for the server environment to ensure backwards compatibility\n // with vite plugins that are not compatible with the new vite environment API (e.g. tailwindcss)\n server: 'ssr',\n client: 'client',\n} as const\n\nexport type ViteEnvironmentNames =\n (typeof VITE_ENVIRONMENT_NAMES)[keyof typeof VITE_ENVIRONMENT_NAMES]\n\n// for client and router:\n// if a user has a custom server/client entry point file, resolve.alias will point to this\n// otherwise it will be aliased to the default entry point in the respective framework plugin\nexport const ENTRY_POINTS = {\n client: 'virtual:tanstack-start-client-entry',\n server: 'virtual:tanstack-start-server-entry',\n // the start entry point must always be provided by the user\n start: '#tanstack-start-entry',\n router: '#tanstack-router-entry',\n} as const\n\n// matches\n// .ts, .tsx, .cts, .mts, .js, .jsx, .cjs, .mjs\n// with optional query params after\n// but not .json\nexport const TRANSFORM_ID_REGEX = [/\\.[cm]?[tj]sx?($|\\?)/]\n"],"names":[],"mappings":"AAAO,MAAM,yBAAyB;AAAA;AAAA;AAAA,EAGpC,QAAQ;AAAA,EACR,QAAQ;AACV;AAQO,MAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,QAAQ;AAAA;AAAA,EAER,OAAO;AAAA,EACP,QAAQ;AACV;AAMO,MAAM,qBAAqB,CAAC,sBAAsB;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/start-plugin-core",
3
- "version": "1.133.27",
3
+ "version": "1.133.28",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -59,13 +59,13 @@
59
59
  "vitefu": "^1.1.1",
60
60
  "xmlbuilder2": "^3.1.1",
61
61
  "zod": "^3.24.2",
62
- "@tanstack/router-core": "1.133.27",
63
- "@tanstack/router-generator": "1.133.27",
64
- "@tanstack/router-plugin": "1.133.27",
62
+ "@tanstack/router-core": "1.133.28",
63
+ "@tanstack/router-plugin": "1.133.28",
64
+ "@tanstack/router-generator": "1.133.28",
65
65
  "@tanstack/router-utils": "1.133.19",
66
66
  "@tanstack/server-functions-plugin": "1.133.25",
67
- "@tanstack/start-client-core": "1.133.27",
68
- "@tanstack/start-server-core": "1.133.27"
67
+ "@tanstack/start-client-core": "1.133.28",
68
+ "@tanstack/start-server-core": "1.133.28"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/babel__code-frame": "^7.0.6",
package/src/constants.ts CHANGED
@@ -19,4 +19,8 @@ export const ENTRY_POINTS = {
19
19
  router: '#tanstack-router-entry',
20
20
  } as const
21
21
 
22
- export const TRANSFORM_ID_REGEX = [/\.[cm]?[tj]sx?/]
22
+ // matches
23
+ // .ts, .tsx, .cts, .mts, .js, .jsx, .cjs, .mjs
24
+ // with optional query params after
25
+ // but not .json
26
+ export const TRANSFORM_ID_REGEX = [/\.[cm]?[tj]sx?($|\?)/]