From d07aaa4866ec4e1f6041bcf080f8950b362fedd7 Mon Sep 17 00:00:00 2001 From: Logan McAnsh Date: Tue, 7 Mar 2023 20:07:55 -0500 Subject: [PATCH] fix(remix-dev): use path.resolve when re-exporting entry closes #5659 --- .../remix-dev/compiler/plugins/cssBundleEntryModulePlugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/remix-dev/compiler/plugins/cssBundleEntryModulePlugin.ts b/packages/remix-dev/compiler/plugins/cssBundleEntryModulePlugin.ts index 6015691bef1..eaa62a02105 100644 --- a/packages/remix-dev/compiler/plugins/cssBundleEntryModulePlugin.ts +++ b/packages/remix-dev/compiler/plugins/cssBundleEntryModulePlugin.ts @@ -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];