Closed Mayeu closed 6 years ago
OK after more research it seems to be an issue with the fact that Uglyfy is basically not packageable via webpack. In one ticket they propose to use the "embedable" version of Uglify, but then you lose all the advantage of package management.
How would one go to embed Uglify in rehype-minify
?
Hmm, I’d suggest picking the rules you want and using that instead of the whole preset?
Thank you for your response, I'll try your suggestion.
I think we can close this since the issue is not part of rehype-minify but really ot Uglyfy not being packable.
Hello :wave:
I'm trying to use
rehype-minify
in an app created with the default React creation CLI, and when I addI get the following error:
If I remove the import of minify the compilation works without issue.
It seems it could be related to this issue about dynamically required modules.
Here are both stacktrace of the page:
Stack trace 1
Stack trace 2
I am not 100% sure of what the issue is, and where I could look for this dynamically inserted module (if it is the issue).
Any clue?