Skip to content

Update for parser change in webpack 5.109 - #411

Open
jeffrey-easyesi wants to merge 1 commit into
OpenNTF:masterfrom
jeffrey-easyesi:webpack-5.109-parser-compat
Open

jeffrey-easyesi wants to merge 1 commit into
OpenNTF:masterfrom
jeffrey-easyesi:webpack-5.109-parser-compat

Conversation

@jeffrey-easyesi

Copy link
Copy Markdown

webpack/webpack#21451 removed the .loc property from expression nodes. To get the line/column, you must now call parser.getLocation(expr).

For the time being, it's probably best to keep compatible with older webpack versions too, hence the expr.loc || parser.getLocation(expr).

Fixes #404

webpack/webpack#21451 removed the `.loc`
property from expression nodes. To get the line/column, you must now
call `parser.getLocation(expr)`.

For the time being, it's probably best to keep compatible with older
webpack versions too, hence the `expr.loc || parser.getLocation(expr)`.

Fixes OpenNTF#404
@CLAassistant

CLAassistant commented Sep 16, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@chuckdumont
chuckdumont self-requested a review September 23, 2026 19:13
@chuckdumont
chuckdumont requested a review from hcldan September 23, 2026 19:16
@chuckdumont

Copy link
Copy Markdown
Collaborator

@jeffrey-easyesi - thanks for the fix. Could you please sign the Contributor License Agreement?

@jeffrey-easyesi

jeffrey-easyesi commented Sep 24, 2026 •

Copy link
Copy Markdown
Author

I've reached out to our legal team to get the OK on signing that.
EDIT: Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Latest webpack update breaks this plugin

3 participants