On Wed, Jun 30, 2021 at 8:27 pm, Akshay S Dinesh <aks...@learnlearn.in> wrote:
This is most likely due to babel-plugin-add-module-exports being broken.

See https://github.com/59naga/babel-plugin-add-module-exports/issues/72

and https://github.com/59naga/babel-plugin-add-module-exports/issues/80

and https://github.com/59naga/babel-plugin-add-module-exports/issues/73


That 73 points to a new version that's put only on npm and not on github. I'm not exactly sure how it works with fakeupstream at https://salsa.debian.org/js-team/node-babel-plugin-add-module-exports/-/tree/master/

Either way, the version in salsa seems to be 0.2.1 which is definitely outdated (as per the github description of babel-plugin-add-module-exports


Two ways I see are:

Either, update this plugin in Debian to the fork that's pushed only to npm (or switch to https://github.com/lijunle/babel-plugin-add-module-exports/ I guess)


I think we can take the last tagged version 1.0.0 and apply a patch to make it 1.0.2.


OR

Try removing this plugin altogether and changing the
"export default autosize" statement in the last line of autosize.js to
"module.exports = autosize"


It looks like many packages build depend on this module and those are also likely broken. I opened https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990493 to track this.

I'm NOT sure whether either of these will work.

Thanks for the pointers, at least we know what is broken and what the fix is. We just have to figure out the best way to include it.

Reply via email to