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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user