-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(webpack): Support incremental builds via buildLibsFromSource #25060
feat(webpack): Support incremental builds via buildLibsFromSource #25060
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 17432a9. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
packages/webpack/src/plugins/nx-webpack-plugin/lib/apply-base-config.ts
Outdated
Show resolved
Hide resolved
975d0f2
to
b3fbc96
Compare
b3fbc96
to
17432a9
Compare
…5060) This PR adds the ability for incremental builds when using the Webpack Plugin. Instead of using the source library directly, you can now utilize the output folder by utilizing the `buildLibsFromSource` option within your webpack.config file, through `NxAppWebpackPlugin`. This means that instead of accessing `mylib/src/index.ts`, it will access `dist/mylib/index.js`. This directly aligns with incremental builds as it ensures that the build process only recompiles the source doe that has been modified since the last build.
…5060) This PR adds the ability for incremental builds when using the Webpack Plugin. Instead of using the source library directly, you can now utilize the output folder by utilizing the `buildLibsFromSource` option within your webpack.config file, through `NxAppWebpackPlugin`. This means that instead of accessing `mylib/src/index.ts`, it will access `dist/mylib/index.js`. This directly aligns with incremental builds as it ensures that the build process only recompiles the source doe that has been modified since the last build. (cherry picked from commit 6292055)
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.
@ndcunningham what is the easiest way to set buildLibFromSource to false without creating a custom webpack.config.js file? This change is causing failures form my project when used with cypress component tests library that is referencing Storybook Library module in the project.
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
This PR adds the ability for incremental builds when using the Webpack Plugin.
Instead of using the source library directly, you can now utilize the output folder by utilizing the
buildLibsFromSource
option within your webpack.config file, throughNxAppWebpackPlugin
. This means that instead of accessingmylib/src/index.ts
, it will accessdist/mylib/index.js
.This directly aligns with incremental builds as it ensures that the build process only recompiles the source doe that has been modified since the last build.