Skip to content

Commit ff9a872

Browse files
committed
update build target
1 parent ef7579f commit ff9a872

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vite.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export default ({ mode }) => {
158158
},
159159
sourcemap: true,
160160
build: {
161+
target: "esnext", // you can also use 'es2020' here
161162
rollupOptions: {
162163
input: {
163164
main: path.resolve(__dirname, "index.html"),
@@ -185,6 +186,11 @@ export default ({ mode }) => {
185186
},
186187
},
187188
},
189+
optimizeDeps: {
190+
esbuildOptions: {
191+
target: "esnext", // you can also use 'es2020' here
192+
},
193+
},
188194
server: {
189195
port: 8080,
190196
proxy: {

0 commit comments

Comments
 (0)