Hi @DanielSchaffer ,
with webpack5 at it's doorstep, I noticed that with webpack@next (v5.0.0-beta7) the following line
|
import MultiModuleFactory = require('webpack/lib/MultiModuleFactory') |
throws:
⬢ webpack: { Error: Cannot find module 'webpack/lib/MultiModuleFactory'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (node_modules/webpack-cli/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at Object.<anonymous> (node_modules/webpack-babel-multi-target-plugin/dist/src/babel.target.multi.entry.plugin.js:11:28)
at Module._compile (node_modules/webpack-cli/node_modules/v8-compile-cache/v8-compile-cache.js:194:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3) code: 'MODULE_NOT_FOUND' }
It looks like v5 changed their /lib structure
Hi @DanielSchaffer ,
with webpack5 at it's doorstep, I noticed that with webpack@next (v5.0.0-beta7) the following line
webpack-babel-multi-target-plugin/src/babel.target.multi.entry.plugin.ts
Line 4 in c7e8ddd
It looks like v5 changed their
/libstructure