Skip to content

Commit

Permalink
fix: top level await issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mgallagher56 committed Jan 2, 2025
1 parent 37e5cc9 commit 48bb658
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 4 additions & 3 deletions apps/web/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"exclude": ["node_modules", ".eslintrc.cjs"],
"exclude": ["node_modules", "**/**/.eslintrc.cjs"],
"include": [
"env.d.ts",
"**/*.ts",
Expand All @@ -9,6 +9,7 @@
"app/i18n.ts",
"app/i18n.server.ts",
"app/root.tsx",
"apps/web/app/**/*",
"**/.server/**/*.ts",
"**/.server/**/*.tsx",
"**/.client/**/*.ts",
Expand Down Expand Up @@ -38,6 +39,6 @@
"types": ["vite/client", "vitest/globals"],
"paths": {
"~/*": ["./app/*"]
}
}
},
},
}
8 changes: 7 additions & 1 deletion apps/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import GithubActionsReporter from 'vitest-github-actions-reporter';

installGlobals();

export default defineConfig(({ mode }) => ({
export default defineConfig(({ mode, isSsrBuild }) => ({
plugins: [
!process.env.VITEST
? remix({
Expand All @@ -35,6 +35,12 @@ export default defineConfig(({ mode }) => ({
: []),
tsconfigPaths()
],
build: { target: "esnext" },
optimizeDeps: {
esbuildOptions: {
target: 'esnext'
}
},
ssr: {
noExternal: ['remix-i18next']
},
Expand Down

0 comments on commit 48bb658

Please sign in to comment.