agoldis / webpack-require-from

Webpack plugin that allows to configure path or URL for fetching dynamic imports
MIT License
192 stars 31 forks source link

Compatibility Issue in older browsers #65

Closed citrus327 closed 3 years ago

citrus327 commented 3 years ago

Hi, I used this in our project. And I encounter a compatibility issue with older browser.

The string literal syntax is not compatible in chrome 39. And the code itself won't go through babel compile and polyfill injection.

https://github.com/agoldis/webpack-require-from/blob/master/src/plugin.js#L143

My temp fix is just duplicate your code and remove the single warn line to resolve this issue.

agoldis commented 3 years ago

Thanks, fixed in 1.8.4