Skip to content

fix(build) - bundle lodash.isequal to resolve vite import error#822

Open
remotecom wants to merge 2 commits intomainfrom
fix/bundle-lodash-isequal
Open

fix(build) - bundle lodash.isequal to resolve vite import error#822
remotecom wants to merge 2 commits intomainfrom
fix/bundle-lodash-isequal

Conversation

@remotecom
Copy link
Copy Markdown
Contributor

@remotecom remotecom commented Mar 30, 2026

Summary

  • lodash.isequal was externalized by tsup (default for dependencies), but not installed in the example app, causing Vite to fail with Failed to resolve import "lodash.isequal"
  • Added lodash.isequal to noExternal in tsup.config.ts so it gets bundled into the dist output
  • Updated example/package-lock.json to reflect the current dependency state

Test plan

  • Run npm run build — should succeed with no errors
  • Run the example app dev server (cd example && npm run dev) — no Vite import resolution errors
  • Verify lodash.isequal is not referenced as an external import in dist output

🤖 Generated with Claude Code


Note

Low Risk
Low risk build configuration change that only affects bundling behavior; main risk is slightly larger bundle size or unexpected dependency duplication.

Overview
Fixes a build/runtime import resolution issue by adding lodash.isequal to tsup’s noExternal list so it is bundled into dist instead of left as an external dependency.

Written by Cursor Bugbot for commit 8d3b53a. This will update automatically on new commits. Configure here.

lodash.isequal was treated as an external dependency by tsup, but not
installed in the example app, causing Vite to fail with
"Failed to resolve import lodash.isequal". Adding it to noExternal
bundles it into the dist so consumers don't need it as a separate dep.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

📦 Bundle Size Report

Metric Current Previous Change Status
Total (gzip) 209.73 kB 205.35 kB +4.38 kB (+2.1%) 🔴
Total (raw) 563.5 kB 551.82 kB +11.68 kB (+2.1%) 🔴
CSS (gzip) 19.77 kB 19.77 kB 0 B (0%) 🟢
CSS (raw) 102.61 kB 102.61 kB 0 B (0%) 🟢

Size Limits

  • ✅ Total gzipped: 209.73 kB / 250 kB (83.9%)
  • ✅ Total raw: 563.5 kB / 600 kB (93.9%)
  • ✅ CSS gzipped: 19.77 kB / 25 kB (79.1%)

Largest Files (Top 5)

  1. chunk-CWAFRJAQ.js - 12.53 kB (0 B (0%))
  2. chunk-VE2DCEQF.js - 10.3 kB (new)
  3. styles.css - 9.88 kB (0 B (0%))
  4. index.css - 9.88 kB (0 B (0%))
  5. index.js - 6.03 kB (-2 B (-0.0%))
View All Files (309 total)
File Size (gzip) Change
chunk-CWAFRJAQ.js 12.53 kB 0 B (0%)
chunk-VE2DCEQF.js 10.3 kB new
styles.css 9.88 kB 0 B (0%)
index.css 9.88 kB 0 B (0%)
index.js 6.03 kB -2 B (-0.0%)
chunk-WQ4H5V7U.js 5.77 kB 0 B (0%)
chunk-OXKAGVWK.js 4.24 kB 0 B (0%)
chunk-HYDNZQOV.js 4.06 kB 0 B (0%)
chunk-VU6C3EU2.js 3.49 kB 0 B (0%)
chunk-MKPKDACH.js 3.37 kB 0 B (0%)

✅ Bundle size check passed

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

Deploy preview for remote-flows ready!

✅ Preview
https://remote-flows-j61o8e95s-remotecom.vercel.app

Built with commit 8d3b53a.
This pull request is being automatically deployed with vercel-action

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

Deploy preview for remote-flows-example-app ready!

✅ Preview
https://remote-flows-example-87canff25-remotecom.vercel.app

Built with commit 8d3b53a.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

📊 Coverage Report

⚪ Coverage unchanged

Metric Current Previous Change Status
Lines 89.53% 89.53% 0%
Statements 89.22% 89.22% 0%
Functions 86.90% 86.90% 0%
Branches 79.31% 79.31% 0%

Detailed Breakdown

Lines Coverage
  • Covered: 3463 / 3868
  • Coverage: 89.53%
  • Change: 0% (0 lines)
Statements Coverage
  • Covered: 3524 / 3950
  • Coverage: 89.22%
  • Change: 0% (0 statements)
Functions Coverage
  • Covered: 955 / 1099
  • Coverage: 86.90%
  • Change: 0% (0 functions)
Branches Coverage
  • Covered: 2151 / 2712
  • Coverage: 79.31%
  • Change: 0% (0 branches)

✅ Coverage check passed

@remotecom remotecom requested a review from gabrielseco March 30, 2026 21:28
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.

1 participant