asfktz / autodll-webpack-plugin

Webpack's DllPlugin without the boilerplate
MIT License
1.46k stars 80 forks source link

ModuleNotFoundError with Webpack 4 #141

Open scottc-netflix opened 5 years ago

scottc-netflix commented 5 years ago

Even on the newest version of autodll-webpack-plugin, webpack 4 support doesn't work for me. AutoDLL can't resolve any module names. My webpack config is nested in a config directory so I tried with and without setting the context but same result.

webpack: 4.41.2 autodll-webpack-plugin: 0.4.2

The weird thing is it's only a few modules it fails on. They are autosuggest-highlight, currency-codes, and pretty-hrtime. If I remove those from my list of about 30 other modules it runs without errors.

I migrated my project from webpack 3 to 4, everything else works if I comment out AutoDllPlugin from my config. Any ideas?