-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
118 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,5 +45,6 @@ | |
"json", | ||
"jsonc", | ||
"yaml" | ||
] | ||
], | ||
"vitest.disableWorkspaceWarning": true | ||
} |
74 changes: 74 additions & 0 deletions
74
docs/vite.config.ts.timestamp-1714283273745-edf44ed80a529.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// vite.config.ts | ||
import { resolve } from "node:path"; | ||
import { defineConfig } from "file:///D:/workspace/vite/packages/vite/dist/node/index.js"; | ||
import Icons from "file:///D:/workspace/slidev/slidev/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/unplugin-icons/dist/vite.js"; | ||
import IconsResolver from "file:///D:/workspace/slidev/slidev/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/unplugin-icons/dist/resolver.js"; | ||
import Components from "file:///D:/workspace/slidev/slidev/node_modules/.pnpm/[email protected][email protected]/node_modules/unplugin-vue-components/dist/vite.js"; | ||
import Inspect from "file:///D:/workspace/slidev/slidev/node_modules/.pnpm/[email protected][email protected]/node_modules/vite-plugin-inspect/dist/index.mjs"; | ||
import UnoCSS from "file:///D:/workspace/slidev/slidev/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/unocss/dist/vite.mjs"; | ||
var __vite_injected_original_dirname = "D:\\workspace\\slidev\\slidev\\docs"; | ||
var vite_config_default = defineConfig({ | ||
resolve: { | ||
alias: { | ||
"@slidev/client/": `${resolve(__vite_injected_original_dirname, ".vitepress/@slidev/client")}/`, | ||
"@slidev/parser": resolve(__vite_injected_original_dirname, ".vitepress/@slidev/parser"), | ||
"@slidev/theme-default": resolve(__vite_injected_original_dirname, ".vitepress/@slidev/theme-default") | ||
} | ||
}, | ||
optimizeDeps: { | ||
exclude: [ | ||
"vue-demi", | ||
"@vueuse/shared", | ||
"@vueuse/core" | ||
] | ||
}, | ||
server: { | ||
hmr: { | ||
overlay: false | ||
} | ||
}, | ||
plugins: [ | ||
Components({ | ||
dirs: [ | ||
"./.vitepress/theme/components", | ||
"./.vitepress/@slidev/client/builtin" | ||
], | ||
extensions: ["vue", "md"], | ||
include: [/\.vue$/, /\.vue\?vue/, /\.md$/], | ||
resolvers: [ | ||
IconsResolver({ | ||
prefix: "" | ||
}) | ||
] | ||
}), | ||
Icons({ | ||
defaultStyle: "display: inline-block;" | ||
}), | ||
Inspect(), | ||
UnoCSS(), | ||
{ | ||
name: "code-block-escape", | ||
enforce: "post", | ||
transform(code, id) { | ||
if (!id.endsWith(".md")) | ||
return; | ||
return code.replace(/\/\/```/mg, "```"); | ||
} | ||
}, | ||
{ | ||
name: "virtual-modules", | ||
resolveId(id) { | ||
return id === "/@slidev/configs" ? id : null; | ||
}, | ||
load(id) { | ||
if (id !== "/@slidev/configs") | ||
return; | ||
return "export default {}"; | ||
} | ||
} | ||
] | ||
}); | ||
export { | ||
vite_config_default as default | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFx3b3Jrc3BhY2VcXFxcc2xpZGV2XFxcXHNsaWRldlxcXFxkb2NzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJEOlxcXFx3b3Jrc3BhY2VcXFxcc2xp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ixLQUFLO0FBQUEsTUFDSCxTQUFTO0FBQUEsSUFDWDtBQUFBLEVBQ0Y7QUFBQSxFQUNBLFNBQVM7QUFBQSxJQUNQLFdBQVc7QUFBQSxNQUNULE1BQU07QUFBQSxRQUNKO0FBQUEsUUFDQTtBQUFBLE1BQ0Y7QUFBQSxNQUNBLFlBQVksQ0FBQyxPQUFPLElBQUk7QUFBQSxNQUN4QixTQUFTLENBQUMsVUFBVSxjQUFjLE9BQU87QUFBQSxNQUN6QyxXQUFXO0FBQUEsUUFDVCxjQUFjO0FBQUEsVUFDWixRQUFRO0FBQUEsUUFDVixDQUFDO0FBQUEsTUFDSDtBQUFBLElBQ0YsQ0FBQztBQUFBLElBQ0QsTUFBTTtBQUFBLE1BQ0osY0FBYztBQUFBLElBQ2hCLENBQUM7QUFBQSxJQUNELFFBQVE7QUFBQSxJQUNSLE9BQU87QUFBQSxJQUNQO0FBQUEsTUFDRSxNQUFNO0FBQUEsTUFDTixTQUFTO0FBQUEsTUFDVCxVQUFVLE1BQU0sSUFBSTtBQUNsQixZQUFJLENBQUMsR0FBRyxTQUFTLEtBQUs7QUFDcEI7QUFDRixlQUFPLEtBQUssUUFBUSxhQUFhLEtBQUs7QUFBQSxNQUN4QztBQUFBLElBQ0Y7QUFBQSxJQUNBO0FBQUEsTUFDRSxNQUFNO0FBQUEsTUFDTixVQUFVLElBQUk7QUFDWixlQUFPLE9BQU8scUJBQXFCLEtBQUs7QUFBQSxNQUMxQztBQUFBLE1BQ0EsS0FBSyxJQUFJO0FBQ1AsWUFBSSxPQUFPO0FBQ1Q7QUFDRixlQUFPO0FBQUEsTUFDVDtBQUFBLElBQ0Y7QUFBQSxFQUNGO0FBQ0YsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.