Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When using webpackPrefetch for a preloaded module, it results in an additional network request.
If the current behavior is a bug, please provide the steps to reproduce.
- Clone the repository: https://github.com/FogelAI/webpack_prefetch_bug
- Run the following commands:
$ npm i
$ npm run start
- Visit http://localhost:3000/
- Check the network tab of the Chrome DevTools. You should see two network requests of the Module.js file.
What is the expected behavior?
The Webpack runtime should skip the webpackPrefetch if the module is already preloaded.
Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.
Webpack v5.88.1
Node.js v16.16.0
Operating System: Windows 7
Chrome v109
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When using webpackPrefetch for a preloaded module, it results in an additional network request.
If the current behavior is a bug, please provide the steps to reproduce.
$ npm i
$ npm run start
What is the expected behavior?
The Webpack runtime should skip the webpackPrefetch if the module is already preloaded.
Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.
Webpack v5.88.1
Node.js v16.16.0
Operating System: Windows 7
Chrome v109