Skip to content

Commit f07ff02

Browse files
committed
fix for bundling
1 parent 571bb18 commit f07ff02

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

packages/devtools-vite/src/plugin.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)