mirror of
https://github.com/gedoor/legado.git
synced 2024-07-19 01:17:25 +08:00
set package.json type
to module
This commit is contained in:
parent
092fd76287
commit
552357b004
@ -2,6 +2,7 @@
|
|||||||
"name": "legado-web",
|
"name": "legado-web",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16",
|
"node": ">=16",
|
||||||
"pnpm": ">=8"
|
"pnpm": ">=8"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { resolve } from "path";
|
import { fileURLToPath, URL } from "node:url";
|
||||||
import { defineConfig, splitVendorChunkPlugin } from "vite";
|
import { defineConfig, splitVendorChunkPlugin } from "vite";
|
||||||
import vue from "@vitejs/plugin-vue";
|
import vue from "@vitejs/plugin-vue";
|
||||||
import Icons from "unplugin-icons/vite";
|
import Icons from "unplugin-icons/vite";
|
||||||
@ -47,9 +47,9 @@ export default ({ mode }) =>
|
|||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
"@": resolve(__dirname, "./src"),
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||||
"@api": resolve(__dirname, "./src/api"),
|
"@api": fileURLToPath(new URL("./src/api", import.meta.url)),
|
||||||
"@utils": resolve(__dirname, "./src/utils/"),
|
"@utils": fileURLToPath(new URL("./src/utils/", import.meta.url)),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user