|
1 | 1 | /* global __dirname, URL -- __dirname, URL */ |
2 | 2 | import ghpagesAdapter from "svelte-adapter-ghpages" |
3 | 3 | import path from "path" |
4 | | -import svelteMd from "vite-plugin-svelte-md" |
5 | | -import svelteMdOption from "./docs-svelte-kit/tools/vite-plugin-svelte-md-option.mjs" |
6 | | - |
7 | | -import "./docs-svelte-kit/build-system/build.js" |
8 | 4 |
|
9 | 5 | const dirname = |
10 | 6 | typeof __dirname !== "undefined" |
@@ -41,46 +37,6 @@ const config = { |
41 | 37 | }, |
42 | 38 |
|
43 | 39 | trailingSlash: "always", |
44 | | - |
45 | | - vite: { |
46 | | - server: { |
47 | | - fs: { strict: false }, |
48 | | - }, |
49 | | - resolve: { |
50 | | - alias: { |
51 | | - eslint: path.join(dirname, "./docs-svelte-kit/shim/eslint.mjs"), |
52 | | - assert: path.join(dirname, "./docs-svelte-kit/shim/assert.mjs"), |
53 | | - "postcss-load-config": path.join( |
54 | | - dirname, |
55 | | - "./docs-svelte-kit/shim/postcss-load-config.mjs", |
56 | | - ), |
57 | | - "source-map-js": path.join( |
58 | | - dirname, |
59 | | - "./docs-svelte-kit/shim/source-map-js.mjs", |
60 | | - ), |
61 | | - module: path.join(dirname, "./docs-svelte-kit/shim/module.mjs"), |
62 | | - path: path.join(dirname, "./docs-svelte-kit/shim/path.mjs"), |
63 | | - url: path.join(dirname, "./docs-svelte-kit/shim/url.mjs"), |
64 | | - os: path.join(dirname, "./docs-svelte-kit/shim/os.mjs"), |
65 | | - fs: path.join(dirname, "./docs-svelte-kit/shim/fs.mjs"), |
66 | | - globby: path.join(dirname, "./docs-svelte-kit/shim/globby.mjs"), |
67 | | - tslib: path.join(dirname, "./node_modules/tslib/tslib.es6.js"), |
68 | | - }, |
69 | | - }, |
70 | | - plugins: [ |
71 | | - svelteMd( |
72 | | - svelteMdOption({ |
73 | | - baseUrl: "/eslint-plugin-svelte", |
74 | | - root: path.join(dirname, "./docs"), |
75 | | - }), |
76 | | - ), |
77 | | - ], |
78 | | - build: { |
79 | | - commonjsOptions: { |
80 | | - ignoreDynamicRequires: true, |
81 | | - }, |
82 | | - }, |
83 | | - }, |
84 | 40 | }, |
85 | 41 | } |
86 | 42 | export default config |
0 commit comments