Updating static files with legacy bundle in Plone 5

I made some tests and I can confirm the resources are not automatically updated after the upgrade step.

after upgrading my package, I had to do the following (correct me if there is another way of doing this):

  • go to the Resource Registries
  • select Development Mode(only logged in users)
  • Save
  • unselect Development Mode(only logged in users)

this kind of works, except for one detail: my upgrade step removed an item from portal_javascript and it still listed in the RequireJS configuration:

requirejs.config({
    baseUrl: PORTAL_URL,
    paths: {
    ...
    "resource-collective-lazysizes-ls-respimg-min-js": "++resource++collective.lazysizes/ls.respimg.min", 
    ...
});

I even created a part to deal with that in Plone 5 but is not working:

https://github.com/collective/collective.lazysizes/pull/29/commits/a7e31831cfb52c03f87f686d30f08e3600147fe0

seems like a bug to me; can somebody confirm?