https://github.com/drewml/webpack-loadmodule-bug
Replicated a bug with `this.loadModule` in loaders
https://github.com/drewml/webpack-loadmodule-bug
Last synced: 8 months ago
JSON representation
Replicated a bug with `this.loadModule` in loaders
- Host: GitHub
- URL: https://github.com/drewml/webpack-loadmodule-bug
- Owner: DrewML
- Created: 2018-01-25T23:47:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-25T23:48:09.000Z (over 8 years ago)
- Last Synced: 2025-02-01T22:29:06.783Z (over 1 year ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webpack loadModule Bug
When [`this.loadModule`](https://webpack.js.org/api/loaders/#this-loadmodule) is used to load a file that has its own dependencies, the dependencies of the module loaded with `this.loadModule` will never be resolved.
## To Replicate:
1. Clone this repository
2. Run `npm install`
3. Run `npm start`
4. Open `dist/bundle.js` and search for `Cannot find module`
## Related
- [StackOverflow question](https://stackoverflow.com/questions/47229666/how-to-write-a-loader-that-depends-on-some-value-in-another-module-but-still-out/47264529#47264529)