test for chrome v66.
This commit is contained in:
16
index.html
16
index.html
@@ -5,6 +5,22 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>OJ</title>
|
||||
<script>
|
||||
this.globalThis || (this.globalThis = window)
|
||||
if (!Object.fromEntries) {
|
||||
Object.defineProperty(Object, 'fromEntries', {
|
||||
value(entries) {
|
||||
if (!entries || !entries[Symbol.iterator]) {throw new Error('Object.fromEntries() requires a single iterable argument'); }
|
||||
const o = {};
|
||||
Object.keys(entries).forEach((key) => {
|
||||
const [k, v] = entries[key];
|
||||
o[k] = v;
|
||||
});
|
||||
return o;
|
||||
},
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body style="height: 100vh">
|
||||
<div id="app"></div>
|
||||
|
||||
1763
package-lock.json
generated
1763
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -31,6 +31,7 @@
|
||||
"devDependencies": {
|
||||
"@iconify-json/ep": "^1.1.10",
|
||||
"@types/node": "^18.15.11",
|
||||
"@vitejs/plugin-legacy": "^4.0.2",
|
||||
"@vitejs/plugin-vue": "^4.1.0",
|
||||
"markdown-it-shiki": "^0.8.0",
|
||||
"monaco-editor": "^0.36.1",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { defineConfig } from "vite"
|
||||
import path from "path"
|
||||
import Vue from "@vitejs/plugin-vue"
|
||||
import legacy from "@vitejs/plugin-legacy"
|
||||
import AutoImport from "unplugin-auto-import/vite"
|
||||
import Components from "unplugin-vue-components/vite"
|
||||
import { NaiveUiResolver } from "unplugin-vue-components/resolvers"
|
||||
@@ -39,6 +40,7 @@ export default defineConfig({
|
||||
},
|
||||
plugins: [
|
||||
Vue({ include: [/\.vue$/, /\.md$/] }),
|
||||
legacy({ targets: ["chrome 66", "not IE 11"] }),
|
||||
AutoImport({
|
||||
imports: [
|
||||
"vue",
|
||||
|
||||
Reference in New Issue
Block a user