Skip to content

Commit

Permalink
Dev server: minimize the "Module not found" error during rebuilds (#722)
Browse files Browse the repository at this point in the history
* Minimize the "Module not found" error

I found webpack to be too eager to rebuild the app you're working on, whenever one of our sdk packages is built. We needed a way to tell webpack to wait a bit before doing its rebuild.

* Update CHANGELOG.md
  • Loading branch information
vmarta authored Sep 16, 2022
1 parent 158b357 commit 76b83d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/pwa-kit-dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## v2.3.0-dev (Aug 25, 2022)
- Minimize "Module not found" error during webpack rebuild, whenever a package dependency is being updated/built [#722](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/722)

## v2.2.0 (Aug 25, 2022)
- Added option to specify where/from the credentials can be saved/read [#647](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/647)

Expand Down
3 changes: 3 additions & 0 deletions packages/pwa-kit-dev/src/configs/webpack/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ const baseConfig = (target) => {
class Builder {
constructor() {
this.config = {
watchOptions: {
aggregateTimeout: 1000
},
target,
mode,
...(target === 'node'
Expand Down

0 comments on commit 76b83d4

Please sign in to comment.