Andy Pan

Results 16 comments of Andy Pan

I guess it is a historical option, but it is really handy for some PoCs. As you say, you can do the equivalent to bind-mount the root. Thinking this way,...

Sorry, I got the wrong idea. This issue is tricker than I originally thought.

Same here. If you begin with the homepage and click a bookmarked address on the side it works normally. If you reload the page it voids out with the TypeError.

Actually this could be reproduced on nearly all Chrome/Chromium-based apps I knew of: Chrome 106, Chromium 106, Discord, and the "find" field in VS Code 1.72. (Vivaldi is an interesting...

Double fork is a technique meant to re-parent the daemon process to init. Some investigations show that it does not change its parent, as opposed to what we usually imagine...

There is a regression: test case ["should invalidate bundle on dynamic module write"](https://github.com/sysgears/webpack-virtual-modules/blob/c45595835906a201f9441a2f3c9d688f5689767c/src/__tests__/index.test.ts#L127) waits indefinitely. I am uncertain about its intention. Maybe the test passed before is because of the...

> > There is a regression: test case ["should invalidate bundle on dynamic module write"](https://github.com/sysgears/webpack-virtual-modules/blob/c45595835906a201f9441a2f3c9d688f5689767c/src/__tests__/index.test.ts#L127) waits indefinitely. > > I am uncertain about its intention. Maybe the test passed before...

Some investigation: If you add some code in Watchpack, like ```diff _onRemove(item, file, type) { file = file || item; + console.log('!!! ON-REMOVE', item, file, type) if (this.paused) return; this.emit("remove",...

Took several days to bisect the problem. The problem lies in the fact that [`WatchFileSystem`](https://github.com/webpack/webpack/blob/64f2bdb7a99c94e61ff142afbc353cb9ea1a2f7d/lib/node/NodeEnvironmentPlugin.js#L48) will scan the filesystem after a compilation has finished, and if it finds any differences,...

Update: I have worked out a more robust, `Proxy`-based solution that treats the original `WatchFileSystem` as an abstract object. Should be more resilient to breaking changes in Webpack and Watchpack....