[Pkg-javascript-devel] The (long) way to update rollup

Pirate Praveen praveen at onenetbeyond.org
Thu Jul 25 14:38:58 BST 2019



On 2019, ജൂലൈ 25 5:02:19 PM IST, Xavier <yadd at debian.org> wrote:
>Thanks a lot !
>
>Could you build rollup with 2 passes ? First with node, then copy
>package.json, bin/ and dist/ to node_modules/rollup with a link in
>node_modules/.bin ; then rebuild with this rollup
>
>Then we will be sure to have the same rollup than upstream

I tried but it was not working due to babel and buble options.

babel plugin found imports as a problem, tried to convert import to require with module: true but that did not work.

For buble also similar error. It may go away with a newer version.

Also babel don't recognize the patched syntax, so you will have to unapply the patches.

May be a newer version might fix this incompatibility. I think we can go without building at all for now and try later with a newer upstream again.

Meanwhile I made the esm branch build able and installable as deb (added a shebang to bin/src/index.js). Tested with building node-d3-time and node-d3-zoom repos.

If you'd like to try building in 2 stages, feel free.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



More information about the Pkg-javascript-devel mailing list