[Pkg-javascript-devel] Bug#931571: Bug#931571: rollup: please update to upstream release 0.61.0 or newer
Pirate Praveen
praveen at onenetbeyond.org
Sat Oct 5 09:40:07 BST 2019
On Sat, Oct 5, 2019 at 13:28, Pirate Praveen <praveen at onenetbeyond.org>
wrote:
> On Sun, 07 Jul 2019 16:21:14 -0300 Jonas Smedegaard <dr at jones.dk
> <mailto:dr at jones.dk>> wrote:
>> Please update to upstream release 0.61.0 or newer, as this is
>> needed by
>> node-terser.
>
> I'm trying to update to 0.68.2 in master-0.68 branch,
>
> <https://salsa.debian.org/js-team/node-rollup/commits/master-0.68>
>
> tsc command fails with this error,
>
> src/rollup/index.ts:326:11 - error TS2322: Type
> 'import("/usr/share/nodejs/magic-string/index").SourceMap' is not
> assignable to type
> 'import("/home/pravi/forge/debian/git/js-team/node-rollup/src/rollup/types").SourceMap'.
> Types of property 'version' are incompatible.
> Type 'number' is not assignable to type 'string'.
>
> 326 outputChunk.map = rendered.map;
> ~~~~~~~~~~~~~~~
>
>
> Found 2 errors.
>
I fixed this error with the following patch, it'd be good if someone
can confirm this is okay.
--- a/src/rollup/index.ts
+++ b/src/rollup/index.ts
@@ -323,7 +323,7 @@
const outputChunk = <OutputChunk>outputBundle[chunk.id];
return chunk.render(outputOptions, addons,
outputChunk).then(rendered => {
outputChunk.code = rendered.code;
- outputChunk.map = rendered.map;
+ outputChunk.map = <any>rendered.map;
return graph.pluginDriver.hookParallel('ongenerate', [
{ bundle: outputChunk, ...outputOptions },
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20191005/fc59e18c/attachment.html>
More information about the Pkg-javascript-devel
mailing list