Skip to content

Commit d64d0be

Browse files
Anas12091101gemini-code-assist[bot]
authored andcommitted
fix: Update xmodule/util/builtin_assets.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> (cherry picked from commit 2b892b1)
1 parent 74fe2db commit d64d0be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xmodule/util/builtin_assets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def add_webpack_js_to_fragment(fragment, bundle_name):
4343
"""
4444
Add all JS webpack chunks to the supplied fragment.
4545
"""
46-
import webpack_loader.utils
47-
for chunk in webpack_loader.utils.get_files(bundle_name, None, 'DEFAULT'):
46+
from webpack_loader.utils import get_files
47+
for chunk in get_files(bundle_name, None, 'DEFAULT'):
4848
if chunk['name'].endswith(('.js', '.js.gz')):
4949
fragment.add_javascript_url(chunk['url'])

0 commit comments

Comments
 (0)