On Sat, Oct 5, 2019 at 13:28, Pirate Praveen <prav...@onenetbeyond.org> wrote:
On Sun, 07 Jul 2019 16:21:14 -0300 Jonas Smedegaard <d...@jones.dk <mailto:d...@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 },


-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to