Paciolan / remote-module-loader

Loads a CommonJS module from a remote URL for the Browser or Node.js.
MIT License
85 stars 21 forks source link

Remote module as Webpack chunked build #15

Closed shanplourde closed 2 years ago

shanplourde commented 3 years ago

Hello, I have a Webpack 4 remote module built in commonjs form. The remote module built is also chunked.

When consumed in my parent Webpack 4 application, the main entry chunk successfully loads, but once Webpack needs to request the remote module's chunks, it loads them from the domain of the consumer rather than the domain of the remote module.

I'm still researching whether or not this something that I can configure in Webpack, or if it's a bug. Appreciate any insights that you might have.

joelnet commented 3 years ago

This is going to be difficult for us to reproduce without a repository. Can you put something up on github so I can pull it and run it to easily replicate the issue you are having?

shanplourde commented 2 years ago

This was just a local development issue...it was resolved by setting up a local proxy in the consumer application.