On Tue, Jun 2, 2020 at 6:56 pm, Pirate Praveen <prav...@onenetbeyond.org> wrote:
Control: tags -1 help

Hi Daniel,

Would it be possible to skip using gulp-less and use lessc command directly, like I did in node-katex (skipped less-loader and used lessc command) ?

See the following commands,

https://salsa.debian.org/js-team/node-katex/-/commit/475b47a08c73f2cf108fcb47c49dc845f7ec7e1a

https://salsa.debian.org/js-team/node-katex/-/commit/b4412f7f7cadc32714290ee2ca4caef01e141c41

The exports seems a bit convoluted to get it right. I need help to provide the same exports as upstream still using just babeljs command or get the upstream build script to work correctly.

I'm trying to close the gap between upstream build and our builds by using rollup to generate cjs file as well, but build fails with this error.

        /usr/bin/node -e require\(\"./.\"\)
/home/pravi/forge/js-team/less.js/dist/less.cjs.js:17699
const { Barrett } = BigInteger.prototype;
                              ^

TypeError: Cannot read property 'prototype' of undefined
at Object.<anonymous> (/home/pravi/forge/js-team/less.js/dist/less.cjs.js:17699:32)

This code comes from node-ecc-jsbn and it looks like a bug there, its package.json wants jsbn 0.1 but we already have 1.0

Reply via email to