[Pkg-javascript-devel] build node-i18next with webpack instead or rollup?
Pirate Praveen
praveen at onenetbeyond.org
Sun Oct 6 14:21:48 BST 2019
On Sun, Oct 6, 2019 at 08:57, Nicolas Mora <nicolas at babelouest.org>
wrote:
> Hello,
>
> I'm trying to package i18next for Debian [1]. The upstream dev use
> rollup to build the i18next.js file with rollup-plugin-terser.
> Unfortunately, rollup-plugin-terser isn't in Debian yet and requires a
> lot of unpackaged dependencies.
>
> I can build i18next.js with webpack, all the required plugins are
> already present.
>
> I'm wondering if a i18next package built with another tool would be
> accepted?
>
You can just patch out rollup-plugin-terser usage and use
uglifyjs.terser command line.
See
https://sources.debian.org/src/node-d3-time/1.0.11-3/debian/patches/remove-unsupported-syntax.patch/
and
https://sources.debian.org/src/node-d3-time/1.0.11-3/debian/rules/#L12
>
Using webpack is also fine, but if you can get rollup to work that is
preferred. The actual requirement is, the generated files should have
corresponding source. There are many cases where we already use
different tools from what upstream uses for various resons.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20191006/e290ce51/attachment.html>
More information about the Pkg-javascript-devel
mailing list