fix(build) - bundle lodash.isequal to resolve vite import error#822
Open
fix(build) - bundle lodash.isequal to resolve vite import error#822
Conversation
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>
Contributor
📦 Bundle Size Report
Size Limits
Largest Files (Top 5)
View All Files (309 total)
✅ Bundle size check passed |
Contributor
|
Deploy preview for remote-flows ready! ✅ Preview Built with commit 8d3b53a. |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
Deploy preview for remote-flows-example-app ready! ✅ Preview Built with commit 8d3b53a. |
Contributor
📊 Coverage Report⚪ Coverage unchanged
Detailed BreakdownLines Coverage
Statements Coverage
Functions Coverage
Branches Coverage
✅ Coverage check passed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lodash.isequalwas externalized by tsup (default for dependencies), but not installed in the example app, causing Vite to fail withFailed to resolve import "lodash.isequal"lodash.isequaltonoExternalintsup.config.tsso it gets bundled into the dist outputexample/package-lock.jsonto reflect the current dependency stateTest plan
npm run build— should succeed with no errorscd example && npm run dev) — no Vite import resolution errorslodash.isequalis 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.isequaltotsup’snoExternallist so it is bundled intodistinstead of left as an external dependency.Written by Cursor Bugbot for commit 8d3b53a. This will update automatically on new commits. Configure here.