[Pkg-javascript-devel] Bug#978051: Bug#978051: node-consolidate depends on babel-core 6
Xavier
yadd at debian.org
Fri Dec 25 12:05:32 GMT 2020
Le 25/12/2020 à 09:55, Xavier Guimard a écrit :
> Package: node-consolidate
> Version: 0.15.1+repack-1
> Severity: serious
>
> Enabling test proves that node-consolidate depends on node-babel-core 6:
>
> ```
> function requireReact(module, filename) {
> var babel = requires.babel || (requires.babel = require('babel-core'));
>
> var compiled = babel.transformFileSync(filename, { presets: [ 'react' ] }).code;
>
> return module._compile(compiled, filename);
> }
>
> exports.requireReact = requireReact;
>
> /**
> * Converting a string into a node module.
> */
> function requireReactString(src, filename) {
> var babel = requires.babel || (requires.babel = require('babel-core'));
>
> if (!filename) filename = '';
> var m = new module.constructor();
> filename = filename || '';
>
> // Compile Using React
> var compiled = babel.transform(src, { presets: [ 'react' ] }).code;
> ```
Maybe we can simply remove it from Debian: no reverse dependencies
More information about the Pkg-javascript-devel
mailing list