From ffe6d495375624bacc6d3c056a44d0af577fd9ae Mon Sep 17 00:00:00 2001 From: Shiv <44001656+SHIV5T3R@users.noreply.github.com> Date: Fri, 20 Sep 2024 14:10:41 +0100 Subject: [PATCH] Added chrome65 + es2019 as vite build targets --- app/frontend/.eslintrc.js | 1 + vite.config.ts | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/frontend/.eslintrc.js b/app/frontend/.eslintrc.js index 9131da78f5..5325db6df8 100644 --- a/app/frontend/.eslintrc.js +++ b/app/frontend/.eslintrc.js @@ -11,6 +11,7 @@ module.exports = { parserOptions: { parser: "babel-eslint", sourceType: "module", + ecmaVersion: 2018, }, rules: { "no-unused-vars": [ diff --git a/vite.config.ts b/vite.config.ts index 1abea1717d..d97d2c4b44 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,7 +5,10 @@ import { createVuePlugin } from "vite-plugin-vue2"; import legacy from "@vitejs/plugin-legacy"; export default defineConfig({ - build: { emptyOutDir: true }, + build: { + emptyOutDir: true, + target: ["chrome65", "es2019"], + }, plugins: [RubyPlugin(), createVuePlugin(), legacy({ targets: ["defaults"] })], resolve: { alias: {