If I convert something piece of code to a partial via the UI (move to partial) I get the following statement.
<%- await include('path/to/file') %>
If I add the partial via “Add new component” I get the following statement.
<%- await include('path/to/file', Object.assign({}, locals, )) %>
Also, is there a reason to include a comma right after locals?