Skip to content

Chore/build and config cleanup - #413

Merged
sajjadmrx merged 6 commits into
mainfrom
chore/build-and-config-cleanup
Aug 8, 2026
Merged

Chore/build and config cleanup#413
sajjadmrx merged 6 commits into
mainfrom
chore/build-and-config-cleanup

Conversation

@shakurt

@shakurt shakurt commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Fix broken production build config: wxt.config.ts set tryCatchDeoptimization: false under rollupOptions.treeshake, a Rollup-only option that WXT's rolldown bundler rejects ("Expected never but received ..."). Removed it, along with moduleSideEffects: false (too aggressive — overrides the safe default for deps like the webextension polyfill and workbox that rely on side effects for ~0.008% bundle savings).

Added a @/styles path alias for upcoming style work.

Enabled Tailwind directive parsing and CSS formatting in Biome.

Added .gitignore entry for a local docs/ folder and a .gitattributes to normalize line endings to LF.

Dependency cleanup: removed dompurify, react-ga4, workbox-background-sync, postcss, autoprefixer, globals, and @types/styled-jsx — none are referenced anywhere in the codebase. Added framer-motion as an explicit dependency (it was only resolving as a hoisted transitive dep before). Moved wxt to devDependencies since it's build-only tooling.

Applied a handful of incidental Biome formatting fixes (quote style, trailing newlines, a redundant !!, @ts-ignore@ts-expect-error) picked up while touching the files above.

shakurt and others added 6 commits August 8, 2026 09:52
…options

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…move wxt to devDependencies

Drop dompurify, react-ga4, and workbox-background-sync — none are
referenced anywhere in the codebase.

Add framer-motion as an explicit dependency: src/common/motion.tsx and
src/pages/root.tsx import it directly, but it was only resolving as a
hoisted transitive dependency.

Move wxt to devDependencies since it's build-only tooling that doesn't
ship in the built extension. Also drop autoprefixer, postcss, globals,
and @types/styled-jsx, which aren't referenced by any config or source
file.
… passes

No behavioral changes. Running `biome check --write` across the touched
directories for the commits above also reformatted a handful of
unrelated files it happened to pass over: quote-style normalization,
multi-line call wrapping, a couple of missing trailing newlines,
a redundant `!!` double-negation, and one `@ts-ignore` -> `@ts-expect-error`
(Biome's stricter, more specific suppression form). Isolated here so the
functional commits stay readable.
@sajjadmrx
sajjadmrx merged commit 13a45d8 into main Aug 8, 2026
2 checks passed
@sajjadmrx
sajjadmrx deleted the chore/build-and-config-cleanup branch August 8, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants