Skip to content

Commit 07cf2c9

Browse files
committed
refactor: wording
1 parent 85c4451 commit 07cf2c9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/repack/src/plugins/RepackTargetPlugin/RepackTargetPlugin.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class RepackTargetPlugin implements RspackPluginInstance {
8787
require.resolve('../../modules/EmptyModule.js')
8888
).apply(compiler);
8989

90-
const assetsRegistryPath = require.resolve(
90+
const assetsRegistryProxyPath = require.resolve(
9191
'../../modules/AssetsRegistry.js'
9292
);
9393

@@ -96,9 +96,9 @@ export class RepackTargetPlugin implements RspackPluginInstance {
9696
/@react-native.*?([/\\]+)assets-registry[/\\]registry\.js$/,
9797
(resource) => {
9898
// prevent including the proxy module itself
99-
if (resource.contextInfo.issuer !== assetsRegistryPath) {
100-
resource.request = assetsRegistryPath;
101-
resource.createData!.resource = assetsRegistryPath;
99+
if (resource.contextInfo.issuer !== assetsRegistryProxyPath) {
100+
resource.request = assetsRegistryProxyPath;
101+
resource.createData!.resource = assetsRegistryProxyPath;
102102
}
103103
}
104104
).apply(compiler);

0 commit comments

Comments
 (0)