JetBrains / svg-sprite-loader

Webpack loader for creating SVG sprites.
MIT License
2.02k stars 273 forks source link

Generate wrong codes when set both of extract & esModule true #337

Open Frezc opened 5 years ago

Frezc commented 5 years ago

Do you want to request a feature, report a bug or ask a question? report a bug

What is the current behavior? As the title describes, below is generate codes in win10 with node v8.11.3 v nw5 jpm _lq _ krvqc blow is in macos with node v10.11.0 bb84e130-c8f6-b77a-e816-cac23883a12f

What is the expected behavior? Generating right codes.

Here is the reproducing repo: https://github.com/Frezc/svg-bug just run npm start and see generated code in dist/bundle.js

Please tell us about your environment:

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc) Setting esModule to false looks ok.