[Pkg-javascript-devel] Bug#1011279: node-dateformat CJS file does not provide the same API than ES file

Yadd yadd at debian.org
Thu May 19 14:50:30 BST 2022


Package: node-dateformat
Version: 5.0.3-1
Severity: serious
Tags: ftbfs
Justification: FTBFS
Control: affects -1 grunt node-lightgallery

Following upstream doc, `import d from 'dateformat'` is a function. The
file built with `babeljs --plugins @babel/transform-modules-commonjs`
produces an Object, usable function is d.default. This breaks grunt (try
to build node-lightgallery for example).

This can be fixed using `mjs2cjs -a` and a custom `debian/index.cjs`



More information about the Pkg-javascript-devel mailing list