Skip to content

Commit

Permalink
fix(remix-dev): use path.resolve when re-exporting entry
Browse files Browse the repository at this point in the history
closes #5659
  • Loading branch information
mcansh committed Mar 8, 2023
1 parent 96813db commit d07aaa4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function cssBundleEntryModulePlugin(config: RemixConfig): Plugin {
contents: [
// These need to be exports to avoid tree shaking
`export * as entryClient from ${JSON.stringify(
path.relative(config.rootDirectory, config.entryClientFilePath)
path.resolve(config.rootDirectory, config.entryClientFilePath)
)};`,
...Object.keys(config.routes).map((key, index) => {
let route = config.routes[key];
Expand Down

0 comments on commit d07aaa4

Please sign in to comment.