Replace patterns.js with smaller bundle that contains only pat-depends.