Skip to content

Commit f4b87ec

Browse files
authored
fix: remove wdyr from the starter (#183)
1 parent 96f7ccc commit f4b87ec

File tree

6 files changed

+7
-29
lines changed

6 files changed

+7
-29
lines changed

.changeset/cold-squids-chew.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-starter-boilerplate": patch
3+
---
4+
5+
Remove wdyr from application

package-lock.json

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
"@typescript-eslint/parser": "7.13.0",
8585
"@vitejs/plugin-react-swc": "3.6.0",
8686
"@vitest/coverage-v8": "1.5.0",
87-
"@welldone-software/why-did-you-render": "8.0.1",
8887
"babelsheet2": "0.0.15",
8988
"babelsheet2-json-writer": "0.0.6",
9089
"babelsheet2-reader": "0.0.8",

src/index.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
if (import.meta.env.DEV) {
2-
import.meta.glob('./wdyr.ts', { eager: true });
3-
}
4-
import React from 'react';
51
import { createRoot } from 'react-dom/client';
62
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
73
import { RouterProvider, createRouter } from '@tanstack/react-router';

src/wdyr.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

vite.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ const manualChunks = (id: string) => {
1515
/* eslint-disable import/no-default-export */
1616
export default defineConfig({
1717
plugins: [
18-
react({
19-
jsxImportSource: '@welldone-software/why-did-you-render',
20-
}),
18+
react(),
2119
viteTsconfigPaths(),
2220
svgrPlugin(),
2321
TanStackRouterVite(),
24-
process.env.ANALYZE ? (visualizer({ open: true }) as PluginOption) : null,
22+
process.env.ANALYZE ? (visualizer({ open: true, gzipSize: true }) as PluginOption) : null,
2523
],
2624
server: {
2725
open: true,

0 commit comments

Comments
 (0)