-
Notifications
You must be signed in to change notification settings - Fork 7
chore: 移除已废弃的 InteractiveModel 及相关资源依赖 #24
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (performance): 可以考虑是否也移除其他 react-three 依赖,以在 3D 功能已经完全下线的情况下进一步减小 bundle 体积。
由于
InteractiveModel.tsx和后处理相关依赖已经被删除,请确认项目中是否仍然在任何地方使用@react-three/fiber和@react-three/drei。如果没有使用,移除它们可以进一步减少 bundle 体积和安装时间。建议的修改示例:
@react-three/fiber和@react-three/drei,确认它们没有在任何地方被导入。如果仍有导入,这些用法需要在本次变更前一并移除或重构。devDependencies中或任何 workspace 包中,也请一并删除,以便彻底从项目中移除它们。package.json后,运行你的包管理器(例如pnpm install、npm install或yarn install),并确认应用可以正常构建和运行且没有报错。Original comment in English
suggestion (performance): Consider whether other react-three dependencies can also be removed to reduce bundle size if the 3D feature was fully dropped.
Since
InteractiveModel.tsxand the postprocessing deps are gone, please verify whether@react-three/fiberand@react-three/dreiare still used anywhere. If not, removing them would further reduce bundle size and install time.Suggested implementation:
@react-three/fiberand@react-three/dreito confirm they are not imported anywhere. If they are still imported, those usages must also be removed or refactored before this change.devDependenciesor in any workspace packages, remove them there as well to fully drop them from the project.package.json, run your package manager (e.g.,pnpm install,npm install, oryarn install) and verify the app builds and runs without errors.