[Pkg-javascript-devel] Removing babel 6: Call for help
Xavier
yadd at debian.org
Mon May 11 23:36:33 BST 2020
Le 11/05/2020 à 22:03, Xavier a écrit :
>
>
> Le 11/05/2020 à 21:48, Xavier a écrit :
>> Le 11/05/2020 à 14:43, Pirate Praveen a écrit :
>>>
>>>
>>> On Mon, May 11, 2020 at 2:27 pm, Xavier <yadd at debian.org> wrote:
>>>> I fixed partially node-matrix-js-sdk but I failed to configure
>>>> debian/webpack.config.js. So node-* is ready but not libjs-*
>>>> Can someone take a look ?
>>>
>>> Did you include this patch?
>>>
>>> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933662
>>
>> Yes, but the problem is to replace browserify by webpack, build needs a
>> tsc loader for webpack
>
> upstream browser-build:
>
> mkdirp dist && browserify -d src/browser-index.js \
> -p [ tsify -p ./tsconfig.json ] \
> -t [ babelify --sourceMaps=inline \
> --presets [ @babel/preset-env @babel/preset-typescript ] ] \
> | exorcist dist/browser-matrix.js.map > dist/browser-matrix.js
>
> I tried to reproduce this in debian/webpack.config.js but it fails.
> Anyway I pushed my work to salsa
I reduced webpack errors. Now I have this but I'm unable to understand
where "buffer" is called (nothing related to that in src code):
ERROR in ./src/crypto/verification/QRCode.js
Module not found: Error: Can't resolve './../../../buffer' in
'/<<PKGBUILDDIR>>/src/crypto/verification'
@ ./src/crypto/verification/QRCode.js 1:0-28
@ ./src/crypto/index.js
@ ./src/client.js
@ ./src/matrix.js
@ ./src/browser-index.js
ERROR in ./src/crypto/recoverykey.js
Module not found: Error: Can't resolve './../../buffer' in
'/<<PKGBUILDDIR>>/src/crypto'
@ ./src/crypto/recoverykey.js 1:0-25
@ ./src/client.js
@ ./src/matrix.js
@ ./src/browser-index.js
ERROR in ./src/crypto/olmlib.js
Module not found: Error: Can't resolve './../../buffer' in
'/<<PKGBUILDDIR>>/src/crypto'
@ ./src/crypto/olmlib.js 1:0-25
@ ./src/client.js
@ ./src/matrix.js
@ ./src/browser-index.js
ERROR in ./src/crypto/aes.js
Module not found: Error: Can't resolve './../../buffer' in
'/<<PKGBUILDDIR>>/src/crypto'
@ ./src/crypto/aes.js 1:0-25
@ ./src/crypto/SecretStorage.js
@ ./src/crypto/index.js
@ ./src/client.js
@ ./src/matrix.js
@ ./src/browser-index.js
More information about the Pkg-javascript-devel
mailing list