Skip to content

Commit

Permalink
fix: use __webpack_module__ for json module matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
j4k0xb committed Jan 15, 2024
1 parent 0238007 commit 0c9a328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webcrack/src/unpack/webpack/json-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function transformJsonModule(ast: t.File): unknown {
const matcher = m.expressionStatement(
m.assignmentExpression(
'=',
constMemberExpression('module', 'exports'),
constMemberExpression('__webpack_module__', 'exports'),
m.or(jsonObject, jsonArray),
),
);
Expand Down

0 comments on commit 0c9a328

Please sign in to comment.