We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd54035 commit ba25ecfCopy full SHA for ba25ecf
1 file changed
vite.config.ts
@@ -75,6 +75,8 @@ const useSyncExternalStoreShimIndexAlias = {
75
replacement: '@tanstack/redact',
76
}
77
78
+const reactShimNoExternals = ['@tanstack/redact']
79
+
80
export default defineConfig({
81
envDir,
82
resolve: {
@@ -107,6 +109,7 @@ export default defineConfig({
107
109
environments: {
108
110
rsc: {
111
112
+ noExternal: reactShimNoExternals,
113
external: [
114
'@tanstack/react-start-server',
115
'@tanstack/react-router/ssr/server',
@@ -140,6 +143,7 @@ export default defineConfig({
140
143
'normalize-wheel',
141
144
'@tanstack/react-hotkeys',
142
145
'@webcontainer/api',
146
+ ...reactShimNoExternals,
147
],
148
},
149
optimizeDeps: {
0 commit comments