Skip to content

Commit

Permalink
upgrade remix and activate some feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilDL committed Nov 10, 2024
1 parent ca2fe80 commit ac39738
Show file tree
Hide file tree
Showing 8 changed files with 264 additions and 743 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ _This Package **uses `pnpm` as the package manager** of choice to manage workspa
- TS Configs, also with different presets.
- [Tailwind](https://tailwindcss.com/) configs.

### Remix future flags activated:

```ts
future: {
unstable_optimizeDeps: true,
v3_fetcherPersist: true,
v3_lazyRouteDiscovery: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
},
```

### What else ?

- Remix App [Multi-region Fly app deployment](https://fly.io/docs/reference/scaling/) with [Docker](https://www.docker.com/)
Expand Down
8 changes: 4 additions & 4 deletions apps/remix-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"@remix-gospel-stack/database": "workspace:*",
"@remix-gospel-stack/internal-nobuild": "workspace:*",
"@remix-gospel-stack/ui": "workspace:*",
"@remix-run/express": "2.13.1",
"@remix-run/node": "2.13.1",
"@remix-run/react": "2.13.1",
"@remix-run/express": "2.14.0",
"@remix-run/node": "2.14.0",
"@remix-run/react": "2.14.0",
"address": "^2.0.3",
"chalk": "^5.3.0",
"chokidar": "^4.0.1",
Expand All @@ -51,7 +51,7 @@
"@faker-js/faker": "^9.0.2",
"@playwright/test": "^1.47.2",
"@remix-gospel-stack/eslint-config": "workspace:*",
"@remix-run/dev": "2.13.1",
"@remix-run/dev": "2.14.0",
"@swc/core": "^1.7.28",
"@swc/helpers": "^0.5.13",
"@tailwindcss/typography": "^0.5.15",
Expand Down
7 changes: 7 additions & 0 deletions apps/remix-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ export default defineConfig({
remix({
ignoredRouteFiles: ["**/.*"],
serverModuleFormat: "esm",
future: {
unstable_optimizeDeps: true,
v3_fetcherPersist: true,
v3_lazyRouteDiscovery: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
},
}),
tsconfigPaths(),
],
Expand Down
1 change: 0 additions & 1 deletion apps/remix-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"devDependencies": {
"@remix-gospel-stack/eslint-config": "workspace:*",
"@remix-run/dev": "2.13.1",
"@remix-run/eslint-config": "2.13.1",
"@types/react": "^18.3.9",
"@types/react-dom": "^18.3.0",
"@types/source-map-support": "^0.5.10",
Expand Down
12 changes: 11 additions & 1 deletion apps/remix-vercel/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@ installGlobals();

export default defineConfig({
plugins: [
remix({ serverModuleFormat: "esm", presets: [vercelPreset()] }),
remix({
serverModuleFormat: "esm",
presets: [vercelPreset()],
future: {
unstable_optimizeDeps: true,
v3_fetcherPersist: true,
v3_lazyRouteDiscovery: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
},
}),
tsconfigPaths(),
],
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"dependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
"@remix-run/dev": "2.13.1",
"@remix-run/dev": "2.14.0",
"@turbo/gen": "^2.1.2",
"@types/glob": "8.1.0",
"glob": "^11.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"tailwind-merge": "^2.5.2"
},
"peerDependencies": {
"@remix-run/dev": "2.13.1",
"@remix-run/node": "2.13.1",
"@remix-run/dev": "2.14.0",
"@remix-run/node": "2.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "^3.3.2",
Expand All @@ -36,8 +36,8 @@
"devDependencies": {
"@remix-gospel-stack/eslint-config": "workspace:*",
"@remix-gospel-stack/tsconfig": "workspace:*",
"@remix-run/dev": "2.13.1",
"@remix-run/node": "2.13.1",
"@remix-run/dev": "2.14.0",
"@remix-run/node": "2.14.0",
"@storybook/addon-essentials": "^8.3.3",
"@storybook/addon-interactions": "^8.3.3",
"@storybook/addon-links": "^8.3.3",
Expand Down Expand Up @@ -114,4 +114,4 @@
]
}
}
}
}
Loading

0 comments on commit ac39738

Please sign in to comment.