Closed bobbyg603 closed 2 years ago
I can confirm this issue. Fixed by replace esm package with module and native es.
https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
✅ I just posted a comment with a fix for peeps using the code splitting technique for the gulpfile.esm.js
setup.
In our gulpfile.esm.js everything works just fine until we import imagemin. As soon as we add imagemin and run gulp we get the following:
We're using node 14.17.4 and npm 7.22.0.
Can someone please help us get unstuck here? Thanks!