Skip to content

Commit

Permalink
fix(remix-dev): use path.resolve when re-exporting entry.client (remi…
Browse files Browse the repository at this point in the history
  • Loading branch information
mcansh authored and fernandojbf committed Mar 21, 2023
1 parent 1e4a8e3 commit 72d4606
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/css-bundle-monorepo-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"remix": patch
"@remix-run/dev": patch
---

use path.resolve when re-exporting entry.client
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 72d4606

Please sign in to comment.