fix: Upgrade django-webpack-loader to match webpack-bundle-tracker

The versions of these two tools is now kept in sync.  As a part of the
migration, the method signature for render_bundle changes which we
needed to update in our Mako templates where it doesn't automatically
pass context.
This commit is contained in:
Feanil Patel
2025-09-12 11:25:21 -04:00
parent 9a31db098e
commit 438397d7b2
6 changed files with 7 additions and 16 deletions

View File

@@ -147,7 +147,7 @@ if not source:
<%
body = capture(caller.body)
%>
${HTML(render_bundle(entry, extension=None, config='DEFAULT', attrs=attrs))}
${HTML(render_bundle(context, entry, extension=None, config='DEFAULT', attrs=attrs))}
% if body:
<script type="text/javascript">
${body | n, decode.utf8}
@@ -166,8 +166,8 @@ if not source:
component as props.
</%doc>
${HTML(render_bundle(component))}
${HTML(render_bundle('ReactRenderer'))}
${HTML(render_bundle(context, component))}
${HTML(render_bundle(context,'ReactRenderer'))}
<div id="${id}"></div>
<script type="text/javascript">