electrode-io / electrode

Web applications with node.js and React
Other
2.1k stars 301 forks source link

fix: cdn map error when applications use dymanic imports #1972

Closed arunvishnun closed 1 year ago

arunvishnun commented 1 year ago

Summary

Fixes a CDN map not found error when dynamic imports are used.

Screen Shot 2023-05-17 at 2 24 52 PM

cdnMap method was meant for non-css/js files. Fall back to the default webpack's public path in case of JS and css