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];