import(...).default.default
When using gulp-uglify-es
in Node (v16.6.1) with ESM, I have to get the default
property of the default
export:
import uglify_ from 'gulp-uglify-es'
const uglify = uglify_.default
// OR
const uglify = (await import('gulp-uglify-es')).default.default
This seems like a weird non-compatibility between the way you export the module and the way Node understands ESM...