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">

View File

@@ -29,11 +29,6 @@ Django<5.0
# Issue for unpinning: https://github.com/openedx/edx-platform/issues/35277
django-oauth-toolkit==1.7.1
# Date: 2021-05-17
# greater version has breaking changes and requires some migration steps.
# Issue for unpinning: https://github.com/openedx/edx-platform/issues/35276
django-webpack-loader==0.7.0
# Date: 2024-07-19
# Generally speaking, the major version of django-stubs must either match the major version
# of django, or exceed it by 1. So, we will need to perpetually constrain django-stubs and

View File

@@ -372,9 +372,8 @@ django-waffle==5.0.0
# edx-enterprise
# edx-proctoring
# edx-toggles
django-webpack-loader==0.7.0
django-webpack-loader==3.2.1
# via
# -c requirements/constraints.txt
# -r requirements/edx/kernel.in
# edx-proctoring
djangorestframework==3.16.1

View File

@@ -606,9 +606,8 @@ django-waffle==5.0.0
# edx-enterprise
# edx-proctoring
# edx-toggles
django-webpack-loader==0.7.0
django-webpack-loader==3.2.1
# via
# -c requirements/constraints.txt
# -r requirements/edx/doc.txt
# -r requirements/edx/testing.txt
# edx-proctoring

View File

@@ -444,9 +444,8 @@ django-waffle==5.0.0
# edx-enterprise
# edx-proctoring
# edx-toggles
django-webpack-loader==0.7.0
django-webpack-loader==3.2.1
# via
# -c requirements/constraints.txt
# -r requirements/edx/base.txt
# edx-proctoring
djangorestframework==3.16.1

View File

@@ -470,9 +470,8 @@ django-waffle==5.0.0
# edx-enterprise
# edx-proctoring
# edx-toggles
django-webpack-loader==0.7.0
django-webpack-loader==3.2.1
# via
# -c requirements/constraints.txt
# -r requirements/edx/base.txt
# edx-proctoring
djangorestframework==3.16.1