Steve Faulkner
b7455c3fa6
fix: fully elide inline type-only import specifiers ( #2498 )
...
Vite 8's OXC transform (and Vite 7's esbuild transform) honour
`"verbatimModuleSyntax": true` from the app's tsconfig, so
`import { type Metadata } from "next"` leaves a side-effect
`import "next"` behind when every specifier is type-only. Next.js
(SWC) — and esbuild/tsc without verbatimModuleSyntax — elide the whole
statement. create-t3-app and other scaffolds emit both the tsconfig
option and the inline-type import form stock, so on vinext the real
Next.js server runtime was pulled into the RSC graph (dev 500
"require is not defined", build failures via styled-jsx/client-only)
and server-only modules were pulled into the browser bundle when a
"use client" file imported only types from them (t3's tRPC router
shipped to clients and crashed hydration).
Force `typescript.onlyRemoveTypeImports: false` in the oxc transform
options (and `verbatimModuleSyntax: false` in the Vite 7 esbuild
tsconfigRaw) so type-import elision matches Next.js regardless of the
app's tsconfig.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com >
2026-07-03 10:35:59 +01:00
..
2026-06-29 17:33:51 +00:00
2026-06-22 23:17:41 +01:00
2026-07-02 21:33:32 +01:00
2026-07-03 10:35:59 +01:00
2026-06-18 17:20:05 +01:00
2026-06-29 15:37:57 +01:00
2026-06-18 14:07:05 +01:00
2026-06-29 17:33:51 +00:00
2026-06-14 23:31:38 +01:00
2026-05-19 18:12:42 +01:00
2026-05-27 16:17:16 +01:00
2026-06-13 22:05:31 +01:00
2026-06-02 20:25:25 +01:00
2026-07-01 11:02:53 +01:00
2026-06-22 14:50:06 +01:00
2026-06-26 21:36:48 +01:00
2026-06-07 21:55:56 +01:00
2026-06-30 21:16:27 +01:00
2026-06-13 22:08:02 +01:00
2026-05-05 19:39:39 +01:00
2026-06-28 22:01:58 +00:00
2026-06-26 21:34:25 +01:00
2026-05-03 17:34:06 +01:00
2026-06-28 22:01:58 +00:00
2026-06-05 14:38:01 +01:00
2026-06-28 22:59:48 +00:00
2026-06-22 23:29:40 +01:00
2026-05-26 11:28:33 +01:00
2026-07-03 00:05:47 +01:00
2026-07-03 00:05:47 +01:00
2026-06-30 21:14:04 +01:00
2026-06-11 23:21:52 +01:00
2026-06-22 23:17:41 +01:00
2026-04-28 20:37:49 +01:00
2026-06-22 23:17:41 +01:00
2026-06-17 18:17:41 +01:00
2026-06-26 14:44:29 +01:00
2026-06-30 21:14:04 +01:00
2026-07-02 22:46:53 +01:00
2026-06-26 20:52:20 +01:00
2026-07-02 19:42:46 +00:00
2026-06-28 22:59:48 +00:00
2026-05-13 10:02:02 +01:00
2026-06-20 14:43:17 +01:00
2026-06-15 22:37:31 +01:00
2026-05-03 17:34:06 +01:00
2026-06-14 00:44:54 +01:00
2026-06-08 12:16:08 +01:00
2026-06-07 00:18:42 +01:00
2026-04-10 07:49:18 +01:00
2026-05-03 17:34:06 +01:00
2026-06-28 22:59:48 +00:00
2026-05-02 19:54:25 +01:00
2026-06-12 11:44:28 +01:00
2026-06-23 19:30:21 +01:00
2026-05-04 17:04:39 +01:00
2026-06-05 14:57:20 +01:00
2026-06-11 00:54:56 +01:00
2026-06-08 19:02:38 +01:00
2026-06-22 23:17:41 +01:00
2026-07-01 17:47:08 +01:00
2026-06-05 15:48:54 +01:00
2026-07-01 11:27:22 +01:00
2026-06-28 22:59:48 +00:00
2026-06-05 15:48:54 +01:00
2026-06-18 17:20:05 +01:00
2026-07-02 21:35:52 +01:00
2026-06-19 14:49:29 +01:00
2026-06-05 15:48:54 +01:00
2026-06-05 15:48:54 +01:00
2026-06-17 13:19:49 +01:00
2026-07-01 17:47:08 +01:00
2026-06-14 20:17:05 +01:00
2026-06-05 15:48:54 +01:00
2026-06-23 10:20:55 +00:00
2026-07-02 20:19:02 +01:00
2026-06-18 23:54:39 +01:00
2026-06-08 19:01:29 +01:00
2026-06-13 00:10:42 +01:00
2026-06-08 19:01:29 +01:00
2026-06-05 15:48:54 +01:00
2026-07-01 11:27:22 +01:00
2026-06-20 14:43:17 +01:00
2026-06-22 23:29:40 +01:00
2026-07-02 21:03:05 +01:00
2026-07-01 11:17:10 +01:00
2026-05-22 13:55:03 +01:00
2026-06-22 23:37:34 +01:00
2026-04-29 15:23:16 +00:00
2026-06-26 20:52:20 +01:00
2026-06-26 19:58:36 +01:00
2026-05-28 16:29:22 +01:00
2026-06-17 17:41:25 +00:00
2026-06-28 22:01:58 +00:00
2026-04-29 14:59:14 +01:00
2026-05-29 10:05:43 +01:00
2026-06-28 20:50:18 +01:00
2026-07-02 19:42:46 +00:00
2026-06-22 23:36:49 +01:00
2026-06-08 19:47:57 +01:00
2026-06-24 10:13:18 +01:00
2026-06-24 10:11:13 +01:00
2026-06-30 12:26:16 +01:00
2026-06-29 14:52:35 +01:00
2026-06-07 21:58:41 +01:00
2026-06-08 19:47:57 +01:00
2026-06-29 19:16:08 +01:00
2026-07-02 19:57:40 +01:00
2026-03-28 09:01:03 +00:00
2026-05-20 14:15:28 +01:00
2026-06-17 18:17:41 +01:00
2026-06-04 12:09:27 +01:00
2026-06-30 23:06:25 +01:00
2026-03-15 10:50:13 +00:00
2026-05-20 13:52:11 +01:00
2026-05-26 12:12:54 +01:00
2026-05-20 10:45:51 +01:00
2026-06-26 18:46:25 +01:00
2026-06-26 19:48:26 +01:00
2026-06-26 19:48:26 +01:00
2026-05-18 10:34:18 +01:00
2026-05-22 10:46:22 +01:00
2026-06-26 21:40:19 +01:00
2026-06-14 22:28:25 +00:00
2026-06-13 00:13:22 +01:00
2026-06-09 15:19:20 +01:00
2026-06-15 23:39:55 +01:00
2026-05-18 16:59:56 +01:00
2026-06-26 21:39:12 +01:00
2026-05-21 10:50:28 +00:00
2026-06-30 20:31:49 +01:00
2026-06-29 19:16:08 +01:00
2026-06-30 08:21:47 +00:00
2026-06-26 17:09:19 +01:00
2026-06-13 00:10:42 +01:00
2026-06-05 12:49:11 +01:00
2026-05-15 09:53:02 +01:00
2026-03-16 21:24:23 -05:00
2026-06-28 19:30:38 +00:00
2026-06-17 18:41:42 +01:00
2026-06-15 22:53:40 +01:00
2026-05-15 13:41:10 +00:00
2026-05-26 15:00:44 +01:00
2026-06-30 23:25:47 +01:00
2026-06-20 14:47:02 +01:00
2026-06-29 16:47:28 +00:00
2026-05-20 10:29:13 +01:00
2026-05-18 11:33:14 +01:00
2026-05-08 20:36:42 +00:00
2026-07-02 21:33:32 +01:00
2026-05-15 12:01:33 +01:00
2026-05-13 10:02:02 +01:00
2026-04-26 20:46:12 +01:00
2026-06-17 19:13:42 +01:00
2026-05-27 19:56:38 +01:00
2026-06-23 19:39:59 +01:00
2026-07-02 20:19:02 +01:00
2026-06-29 17:33:51 +00:00
2026-06-15 23:34:53 +01:00
2026-05-02 17:47:49 +01:00
2026-06-17 18:43:35 +01:00
2026-05-11 07:23:14 +00:00
2026-06-18 17:20:05 +01:00
2026-06-29 21:27:49 +01:00
2026-06-18 22:17:46 +01:00
2026-06-26 19:56:06 +00:00
2026-06-01 12:20:19 +01:00
2026-06-18 23:54:39 +01:00
2026-06-14 23:34:22 +01:00
2026-05-15 12:39:05 +01:00
2026-07-01 17:02:35 +00:00
2026-06-15 00:22:00 +01:00
2026-06-29 19:16:08 +01:00
2026-06-26 20:36:27 +01:00
2026-05-11 13:21:02 +01:00
2026-06-20 14:49:17 +01:00
2026-06-26 20:36:27 +01:00
2026-06-05 13:22:30 +01:00
2026-06-30 23:00:55 +01:00
2026-06-29 19:16:08 +01:00
2026-06-29 19:16:08 +01:00
2026-06-29 19:16:08 +01:00
2026-06-30 21:14:04 +01:00
2026-05-28 18:17:06 +00:00
2026-06-30 10:58:04 +01:00
2026-04-05 09:31:57 +00:00
2026-06-05 21:50:01 +01:00
2026-05-31 20:09:20 -05:00
2026-06-10 15:35:40 +01:00
2026-05-18 14:41:38 +01:00
2026-05-14 13:49:33 +01:00
2026-07-02 20:19:02 +01:00
2026-04-20 10:49:50 +01:00
2026-06-28 22:35:23 +00:00
2026-06-13 00:39:58 +00:00
2026-07-02 21:33:32 +01:00
2026-06-08 19:20:42 +01:00
2026-07-01 11:14:11 +01:00
2026-04-30 19:38:32 +01:00
2026-05-19 14:11:47 +01:00
2026-05-19 14:11:47 +01:00
2026-06-18 23:54:39 +01:00
2026-06-17 13:19:49 +01:00
2026-07-02 21:33:32 +01:00
2026-06-22 14:46:49 +01:00
2026-06-14 23:32:10 +01:00
2026-06-14 23:32:10 +01:00
2026-06-14 23:32:10 +01:00
2026-06-14 23:32:10 +01:00
2026-06-26 21:41:12 +01:00
2026-05-20 10:29:13 +01:00
2026-05-18 12:07:44 +01:00
2026-05-18 12:25:49 +01:00
2026-07-01 17:47:08 +01:00
2026-05-12 14:08:37 +01:00
2026-03-29 22:09:39 +01:00
2026-03-15 10:50:13 +00:00
2026-06-15 21:56:55 +01:00
2026-06-19 16:08:46 +01:00
2026-06-07 00:42:51 +00:00
2026-06-11 23:00:00 +01:00
2026-06-22 23:19:17 +01:00
2026-06-15 23:21:38 +01:00
2026-06-30 23:07:30 +01:00
2026-06-18 10:20:40 +01:00
2026-06-09 15:35:48 +01:00
2026-06-17 18:41:53 +01:00
2026-04-29 10:37:33 +01:00
2026-06-30 23:00:55 +01:00
2026-05-27 22:24:02 +01:00
2026-06-13 22:05:31 +01:00
2026-05-29 09:55:57 +01:00
2026-06-26 19:48:26 +01:00
2026-06-13 00:57:45 +01:00
2026-06-26 20:52:13 +01:00
2026-05-28 20:09:27 +01:00
2026-06-29 14:52:35 +01:00
2026-07-02 21:33:32 +01:00
2026-07-02 21:33:32 +01:00
2026-05-22 15:46:38 +01:00
2026-05-26 09:33:01 +00:00
2026-06-15 22:42:33 +01:00
2026-06-14 20:17:05 +01:00
2026-05-30 15:33:17 -05:00
2026-06-15 22:50:57 +01:00
2026-06-15 23:35:22 +01:00
2026-07-02 19:57:40 +01:00
2026-07-02 19:57:40 +01:00
2026-07-02 20:04:25 +01:00
2026-05-28 14:05:30 +01:00
2026-07-02 19:57:40 +01:00
2026-07-02 21:33:32 +01:00
2026-06-26 20:52:13 +01:00
2026-06-15 23:16:23 +01:00
2026-06-03 23:12:43 +01:00
2026-06-30 23:06:25 +01:00
2026-05-28 15:44:13 +01:00
2026-06-16 12:04:53 +01:00
2026-07-01 13:39:20 +01:00
2026-06-22 13:46:25 +01:00
2026-06-19 10:10:22 +01:00
2026-06-13 00:13:22 +01:00
2026-06-18 15:07:56 +01:00
2026-05-21 20:36:04 +00:00
2026-07-02 19:42:46 +00:00
2026-06-14 00:44:54 +01:00
2026-06-29 19:16:08 +01:00
2026-06-14 00:44:54 +01:00
2026-06-30 23:04:02 +01:00
2026-07-02 20:25:31 +01:00
2026-06-30 21:14:04 +01:00
2026-05-06 09:28:53 +01:00
2026-05-22 10:08:08 +01:00
2026-05-26 10:19:14 +01:00
2026-06-17 23:45:59 +01:00
2026-06-30 10:58:04 +01:00
2026-07-02 21:33:32 +01:00
2026-06-08 19:21:57 +01:00
2026-06-23 19:30:21 +01:00
2026-05-02 19:57:31 +01:00
2026-06-08 19:01:29 +01:00
2026-05-15 09:51:49 +00:00
2026-06-12 11:51:43 +01:00
2026-05-27 09:41:37 +01:00
2026-06-08 21:38:10 +01:00
2026-05-26 09:06:35 +00:00
2026-06-26 21:42:15 +01:00
2026-07-01 14:30:22 +01:00
2026-06-03 22:42:26 +01:00
2026-05-06 10:12:28 +01:00
2026-05-20 10:29:13 +01:00
2026-06-30 20:31:49 +01:00
2026-06-15 23:38:06 +01:00
2026-06-15 23:38:06 +01:00
2026-06-26 21:39:12 +01:00
2026-06-30 10:10:16 +01:00
2026-06-26 21:32:22 +01:00
2026-06-18 14:07:05 +01:00
2026-06-24 19:24:10 +01:00
2026-04-03 12:03:42 +01:00
2026-05-18 11:33:14 +01:00
2026-03-15 10:50:13 +00:00
2026-04-28 19:35:10 +01:00
2026-07-03 00:00:45 +01:00
2026-05-29 11:31:20 +01:00
2026-06-28 23:07:55 +00:00
2026-06-08 19:36:19 +01:00
2026-05-18 11:09:36 +01:00
2026-05-18 12:42:18 +01:00
2026-06-26 19:48:26 +01:00
2026-04-13 10:49:28 +01:00
2026-06-15 23:16:23 +01:00
2026-06-15 23:04:40 +01:00
2026-06-26 20:36:27 +01:00
2026-05-26 12:07:07 +01:00
2026-06-30 20:54:17 +01:00
2026-06-07 22:55:26 +01:00
2026-07-02 23:38:48 +01:00
2026-05-28 21:07:58 +01:00
2026-06-06 22:55:04 +01:00
2026-06-15 23:29:27 +01:00
2026-06-22 14:39:36 +01:00
2026-06-26 19:48:26 +01:00
2026-07-03 10:35:59 +01:00
2026-05-20 10:45:51 +01:00
2026-05-15 11:51:50 +01:00
2026-04-08 22:33:19 -05:00
2026-06-01 11:01:28 +01:00
2026-04-03 12:47:24 +01:00
2026-06-11 12:06:39 +00:00
2026-06-12 10:37:54 +00:00
2026-06-29 17:33:51 +00:00