cascornelissen / svg-spritemap-webpack-plugin

SVG spritemap plugin for webpack
MIT License
207 stars 50 forks source link

Bug with svg4everybody package #145

Closed chomuRollet closed 3 years ago

chomuRollet commented 3 years ago

Description With the last version 3.8.3, the svg4everybody no display, if this option is set:

svg4everybody: {
  polyfill: true,
},

I also import the svg4everybody in my app, but nothing works. And the icons not appear on IE11.

Notice that, this work with an older version 3.5.7 of this package.

Expected behavior The icon can display on older browser like IE11, with the option svg4everybody

Actual behavior The svg4everybody polyfill not display icon correctly in older browser

System information Navigation on IE11 and older browsers,

 System:
    OS: Windows 10 10.0.19042
    CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
    Memory: 4.67 GB / 15.88 GB
  Binaries:
    ....
    svg-spritemap-webpack-plugin: ^3.8.3 => 3.7.1
    svg4everybody: ^2.1.9 => 2.1.9
    ...
cascornelissen commented 3 years ago

Seems like it broke somewhere between 3.5.7 and 3.8.3 for you? Are you able to figure out which version broke it exactly by testing out several version in that range?

I also import the svg4everybody in my app, but nothing works. And the icons not appear on IE11.

Do you mean that manually adding svg4everybody to your bundle and executing svg4everybody() [as described in the docs] also does not work? If so, then it's highly unlikely it's a problem with this plugin.

cascornelissen commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.