Skip to content

Commit

Permalink
Remove unused reference in JSRuntime (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjervis authored Dec 23, 2024
1 parent 249e25c commit d444767
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/runtimes/js/src/JSRuntime.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ export default (new Runtime({
)})(${getAbsoluteUrlExpr(
relativePathExpr,
bundle,
referencedBundle,
config.domainSharding,
)})`;
assets.push({
Expand Down Expand Up @@ -497,7 +496,6 @@ function getLoaderRuntime({
absoluteUrlExpr = getAbsoluteUrlExpr(
relativePathExpr,
bundle,
to,
shardingConfig,
);
}
Expand Down Expand Up @@ -696,7 +694,6 @@ function getHintLoaders(
`require(${JSON.stringify(loader)})(${getAbsoluteUrlExpr(
relativePathExpr,
from,
bundleToPreload,
)}, ${priority ? JSON.stringify(priority) : 'null'}, ${JSON.stringify(
bundleToPreload.target.env.outputFormat === 'esmodule',
)})`,
Expand Down Expand Up @@ -759,7 +756,6 @@ function getURLRuntime(
code = `module.exports = ${getAbsoluteUrlExpr(
relativePathExpr,
from,
to,
shardingConfig,
)};`;
}
Expand Down Expand Up @@ -834,7 +830,6 @@ function getRelativePathExpr(
function getAbsoluteUrlExpr(
relativePathExpr: string,
fromBundle: NamedBundle,
toBundle: NamedBundle,
shardingConfig: JSRuntimeConfig['domainSharding'],
) {
if (
Expand Down

0 comments on commit d444767

Please sign in to comment.