[Pkg-javascript-devel] Removing babel 6: Call for help

Pirate Praveen praveen at onenetbeyond.org
Tue May 12 13:41:37 BST 2020



On Tue, May 12, 2020 at 2:25 pm, Xavier <yadd at debian.org> wrote:
> Le 12/05/2020 à 13:06, Pirate Praveen a écrit :
>> 
>>  On Tue, May 12, 2020 at 10:58 am, Xavier <yadd at debian.org> wrote:
>>>  I fixed it using a simple buffer.js which requires node's 
>>> "buffer". Now
>>>  build is OK but simple "require" test warns:
>> 
>>  I think we will have to tell webpack to use
>>  https://www.npmjs.com/package/buffer module here.
>> 
>>  https://github.com/webpack/node-libs-browser#outdated-versions says 
>> they
>>  want buffer 4.x and in debian we already have node-buffer 5.x
>> 
>>  Try embedding buffer 4.x? We may even need to embed this in
>>  node-libs-browser.
> 
> It's a problem with babel/tsc. I added this to fix the problem:
> 
>   perl -i -pe 's/=\s*import\(/= require\(/' lib/matrix.js
> 

Great, update the bug report with a link to your repo.





More information about the Pkg-javascript-devel mailing list