Skip to content

Commit

Permalink
Resolve vite build error
Browse files Browse the repository at this point in the history
Top-level await is not available in the configured target environment
remix-run/remix#7969
  • Loading branch information
henghaopu committed Jun 28, 2024
1 parent f1b4fef commit 8f1fc8a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { vitePlugin as remix } from "@remix-run/dev";
import { installGlobals } from "@remix-run/node";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
import { vitePlugin as remix } from '@remix-run/dev';
import { installGlobals } from '@remix-run/node';
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';

installGlobals();

export default defineConfig({
plugins: [remix(), tsconfigPaths()],
build: {
target: 'ES2022',
},
});

0 comments on commit 8f1fc8a

Please sign in to comment.