Skip to content

Commit a3a3825

Browse files
committed
change vite config so top level await can be used
1 parent e9e5807 commit a3a3825

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vite.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ import { resolve } from 'path';
22
import { defineConfig } from 'vite';
33

44
export default defineConfig({
5-
base: '/mc-3d-path-map/'
5+
base: '/mc-3d-path-map/',
6+
build: {
7+
target: 'esnext' //browsers can handle the latest ES features
8+
}
69
});

0 commit comments

Comments
 (0)