[Pkg-javascript-devel] Removing legacy rollup-plugin-node-resolve module
Pirate Praveen
praveen at onenetbeyond.org
Thu Dec 31 12:51:34 GMT 2020
On Tue, Dec 29, 2020 at 16:52, Jonas Smedegaard <jonas at jones.dk> wrote:
> Quoting Pirate Praveen (2020-12-29 16:28:17)
>> I'd like to remove embedded copy of rollup-plugin-node-resolve from
>> bullseye and port all modules to use @rollup/plugin-node-resolve
>>
>> I have rebuilt all the reverse dependencies and you can see the list
>> of packages that failed at
>>
>>
>> https://wiki.debian.org/Javascript/Nodejs/Transitions/Rollup-plugin-node-resolve-legacy-rm
>>
>> Most of the time, just a simple one line change should be enough.
>>
>> --- a/rollup.config.js
>> +++ b/rollup.config.js
>> @@ -1,5 +1,5 @@
>> import ascii from "rollup-plugin-ascii";
>> -import node from "rollup-plugin-node-resolve";
>> +import node from "@rollup/plugin-node-resolve";
>> import {terser} from "rollup-plugin-terser";
>> import * as meta from "./package.json";
>
> ...and then tighten build-dependencies to something like this:
>
> node-rollup-plugin-node-resolve (>= 9),
More tips are added to the wiki page shared above. With help from Jonas
and Abraham Raji, we have just 4 more packages to fix. Once current
version of eslint/node-regexpp in unstable migrates to testing, I will
upload this version to unstable.
More information about the Pkg-javascript-devel
mailing list