openedx / openedx/openedx-platform

Upgrade webpack `imports-loader` and `exports-loader` plugins to v5

Open
#34,567 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

maintenance
Dominant language
Python
Stars
8.2k
Forks
4.4k
Avg merge
6d 18h
Merged PRs (30d)
42

Description

We are currently using

"exports-loader": "0.6.4",
"imports-loader": "0.7.1",

In order to upgrade these to v5, we'll need to update our webpack config to support the new "options as object" syntax. This will more or less require reverse engineering how the old versions parse our current configuration strings and reproducing that with the new versions and new config structure.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the webpack configuration that uses the current exports-loader 0.6.4 and imports-loader 0.7.1 strings. Compare how those strings are parsed with the v5 options-as-object syntax, then update the configuration while preserving its existing behavior. Done means both plugins are on v5 and the webpack build or relevant checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
webpack
Domain
build-system
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.