On 2019, ജൂലൈ 24 1:34:06 PM IST, Pirate Praveen <prav...@onenetbeyond.org> 
wrote:
>
>
>On 2019, ജൂലൈ 24 4:22:28 AM IST, Xavier <y...@debian.org> wrote:
>>Final results:
>>
>>0.50.0 can build until 0.53.3
>>0.51.7 can build until 0.56.3
>>0.56.1 can build until 0.65.2
>>0.58.1 can build until 0.67.2
>>0.59.1 can build until 1.12.0
>>1.12.0 can build until 1.17.0
>>
>>So 6 steps needed (4 breaking changes), at least 4 to update
>node-buble
>>(2 little breaking changes)
>
>Last time we broke the loop by manually converting ES module to
>Commonjs with a patch. We could go straight to 1.17 if we follow this
>approach as it does not involve any build.
>
>https://salsa.debian.org/js-team/node-rollup/blob/4fecc91f85423688acdc6d7342fe2f15c2404599/debian/patches/cjs.diff
>
>Alternative approach is to use type: module in package.json and the
>node --experimental-modules  to build rollup 1.17 with itself or just
>patch bin/rollup to add --experimental-modules  in shebang line.
>

It does not work with nodejs in unstable, but with nodejs in experimental.

$ node --experimental-modules bin/src/index.js           (node:32753) 
ExperimentalWarning: The ESM module loader is experimental.                     
   internal/modules/esm/default_resolve.js:69        let url = 
moduleWrapResolve(specifier, parentURL);                                        
                ^                                                               
                    Error: Cannot find package 'minimist' imported from 
/home/praveen/forge/node-rollup/bin/src/index.js                                
                at Loader.resolve [as _resolve] 
(internal/modules/esm/default_resolve.js:69:13)                 at 
Loader.resolve (internal/modules/esm/loader.js:70:33)                           
             at Loader.getModuleJob (internal/modules/esm/loader.js:143:40)     
                             at ModuleWrap.<anonymous> 
(internal/modules/esm/module_job.js:43:40)                            at link 
(internal/modules/esm/module_job.js:42:36)

This means we will have to convert all dependencies as ES modules as well.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
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