I'm not sure if this a memoryFs issue or how 'webpack-isomorphic-dev-middleware' uses require-from-string, but it loses context for dynamic chunks. I realize a lot of people use dynamic-import-node, but I need to split chunks on server and client for testing reasons. The client version works perfectly.
I dug into this yesterday, I don't believe this is possible unless a different in-memory filesystem is used, or node's Module._findPath is rewritten inside, specifically for memoryFs.
I'm not sure if this a memoryFs issue or how 'webpack-isomorphic-dev-middleware' uses require-from-string, but it loses context for dynamic chunks. I realize a lot of people use dynamic-import-node, but I need to split chunks on server and client for testing reasons. The client version works perfectly.
Example:
Error: