Skip to content

Commit

Permalink
chore: update asset manifest to use config.entryClientFilePath
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Jan 3, 2023
1 parent f7fdadd commit 0c35245
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/remix-dev/compiler/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ export async function createAssetsManifest(
.map((im) => resolveUrl(im.path));
}

let entryClientFile = path.resolve(
config.appDirectory,
config.entryClientFile
);
let routesByFile: Map<string, Route[]> = Object.keys(config.routes).reduce(
(map, key) => {
let route = config.routes[key];
Expand All @@ -75,7 +71,7 @@ export async function createAssetsManifest(
let output = metafile.outputs[key];
if (!output.entryPoint) continue;

if (path.resolve(output.entryPoint) === entryClientFile) {
if (path.resolve(output.entryPoint) === config.entryClientFilePath) {
entry = {
module: resolveUrl(key),
imports: resolveImports(output.imports),
Expand Down

0 comments on commit 0c35245

Please sign in to comment.