Hello, your example is not working anymore:
var imagemin = require('gulp-imagemin');
gulp-imagemin starting from 8.0.0 is ESM only, you can't use require.
Author of gulp-imagemin @sindresorhus doesn't look healthy: he tries to force ESM and nobody know why. It looks like youthful maximalism or some illness.
Please remove all usage of gulp-imagemin.
Hello, your example is not working anymore:
gulp-imageminstarting from8.0.0is ESM only, you can't userequire.Author of
gulp-imagemin@sindresorhus doesn't look healthy: he tries to force ESM and nobody know why. It looks like youthful maximalism or some illness.Please remove all usage of
gulp-imagemin.