-
Notifications
You must be signed in to change notification settings - Fork 367
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
refactor(builder): migrate to tsconfig-paths-webpack-plugin #4607
refactor(builder): migrate to tsconfig-paths-webpack-plugin #4607
Conversation
🦋 Changeset detectedLatest commit: b691a1b The changes in this PR will be included in the next version bump. This PR includes changesets to release 252 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #4607 +/- ##
==========================================
- Coverage 57.59% 54.08% -3.51%
==========================================
Files 672 652 -20
Lines 17794 17902 +108
Branches 3876 4125 +249
==========================================
- Hits 10249 9683 -566
- Misses 6934 7567 +633
- Partials 611 652 +41 ☔ View full report in Codecov by Sentry. 📢 Have feedback on the report? Share it here. |
Summary
Since the
tsconfig-paths-webpack-plugin
has supported references in dividab/tsconfig-paths-webpack-plugin#79, we can migrate totsconfig-paths-webpack-plugin
and remove the forked implementation.🤖 Generated by Copilot at b691a1b
This pull request refactors the builder package and its dependencies to use the
tsconfig-paths-webpack-plugin
for resolving tsconfig paths in webpack. It also removes the unusedTsConfigPathsPlugin
and its related files and references. It updates the package versions and the changeset file accordingly.Details
🤖 Generated by Copilot at b691a1b
TS_CONFIG_FILE
constant to thebuilder-shared
package and use it in other packages to get the path of thetsconfig.json
file (link, link, link, link)tsconfig-paths-webpack-plugin
dependency to thebuilder-webpack-provider
,plugin-storybook
, andlibuild-core
packages and update the version to match the one used by thebuilder
package (link, link, link)TsConfigPathsPlugin
with thetsconfig-paths-webpack-plugin
in thebuilder-webpack-provider
package and pass themainFields
andreferences
options to it based on the target and the dependent projects (link, link, link, link, link, link)references
option to thetsconfig-paths-webpack-plugin
in thebuilder
package if it is used by thebuilder-webpack-provider
package (link)TsConfigPathsPlugin
from theREADME.md
,README.zh-CN.md
, andTHIRD-PARTY-LICENSE
files (link, link, link)getSourceInclude
function in thebuilder
package by taking the projects array as a parameter and move thegetDependentProjects
call outside the bundlerType check in thebuilderPluginSourceBuild
function (link, link, link)Related Issue
Checklist
pnpm run change
.