File tree Expand file tree Collapse file tree
packages/devtools-vite/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -179,11 +179,6 @@ export const devtools = (args?: TanStackDevtoolsViteConfig): Array<Plugin> => {
179179 {
180180 name : '@tanstack/devtools:remove-devtools-on-build' ,
181181 apply ( config , { command } ) {
182- console . log (
183- chalk . redBright ( 'remove-devtools-on-build apply called' ) ,
184- config ,
185- command ,
186- )
187182 // Check both command and mode to support various hosting providers
188183 // Some providers (Cloudflare, Netlify, Heroku) might not use 'build' command
189184 // but will always set mode to 'production' for production builds
@@ -194,13 +189,7 @@ export const devtools = (args?: TanStackDevtoolsViteConfig): Array<Plugin> => {
194189 } ,
195190 enforce : 'pre' ,
196191 transform ( code , id ) {
197- if (
198- id . includes ( 'node_modules' ) ||
199- id . includes ( '?raw' ) ||
200- id . includes ( 'dist' ) ||
201- id . includes ( 'build' )
202- )
203- return
192+ if ( id . includes ( 'node_modules' ) || id . includes ( '?raw' ) ) return
204193 const transform = removeDevtools ( code , id )
205194 if ( ! transform ) return
206195 if ( logging ) {
You can’t perform that action at this time.
0 commit comments