lex 2 anos atrás
pai
commit
86a43b28bd
2 arquivos alterados com 4 adições e 6 exclusões
  1. 2 2
      src/teacher/main.ts
  2. 2 4
      vite.config.ts

+ 2 - 2
src/teacher/main.ts

@@ -36,8 +36,8 @@ postMessage(
   }
 )
 
-import Vconsole from 'vconsole'
-const vconsole = new Vconsole()
+// import Vconsole from 'vconsole'
+// const vconsole = new Vconsole()
 if (browser().isTeacher) {
   state.platformType = 'TEACHER'
 } else if (browser().isStudent) {

+ 2 - 4
vite.config.ts

@@ -21,10 +21,8 @@ export default defineConfig({
     vue(),
     vueJsx(),
     legacy({
-      // targets: ['> 0.25%, not dead'],
-      // ignoreBrowserslistConfig: true,
-      targets: ['chrome 52'],
-      additionalLegacyPolyfills: ['regenerator-runtime/runtime']
+      targets: ['> 0.25%, not dead'],
+      ignoreBrowserslistConfig: true,
     }),
     styleImport({
       libs: [