Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf deep dive with Million Lint #8030

Draft
wants to merge 15 commits into
base: next
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: WIP
stipsan committed Dec 17, 2024
commit a37539c0cf353bc9e282c0ebd57e3b3109a09c75
14 changes: 7 additions & 7 deletions dev/test-studio/sanity.cli.ts
Original file line number Diff line number Diff line change
@@ -30,17 +30,17 @@ export default defineCliConfig({
// A) `SANITY_STUDIO_REACT_STRICT_MODE=false pnpm dev`
// B) creating a `.env` file locally that sets the same env variable as above
reactStrictMode: true,
reactCompiler: {
target: '18',
sources: millionLintEnabled
? (filename) => {
reactCompiler: millionLintEnabled
? {
target: '18',
sources: (filename) => {
if (filename.includes('node_modules')) {
return false
}
return millionInclude.every((pattern) => !filename.endsWith(pattern.split('**/')[1]))
}
: undefined,
},
},
}
: {target: '18'},
vite(viteConfig: UserConfig): UserConfig {
const reactProductionProfiling = process.env.REACT_PRODUCTION_PROFILING === 'true'

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -138,7 +138,7 @@
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-sanity": "^7.1.2",
"eslint-config-turbo": "^2.1.2",
"eslint-config-turbo": "^2.3.3",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-boundaries": "^4.2.2",
"eslint-plugin-import": "^2.30.0",
@@ -167,7 +167,7 @@
"rxjs": "^7.8.1",
"sanity": "workspace:*",
"semver": "^7.3.5",
"turbo": "^2.3.0",
"turbo": "^2.3.3",
"typescript": "5.7.2",
"vite": "^5.4.11",
"vite-tsconfig-paths": "^4.3.2",
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.