forked from solidjs/solid-docs-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.mjs
38 lines (37 loc) · 1008 Bytes
/
rollup.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import typescript from "@rollup/plugin-typescript";
import json from "@rollup/plugin-json";
import dynamicImportVars from "@rollup/plugin-dynamic-import-vars";
import mdx from "@mdx-js/rollup";
import remarkGfm from "remark-gfm";
import rehypeHighlight from "rehype-highlight";
import rehypeSlug from "rehype-slug";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import { remarkMdxToc } from "remark-mdx-toc";
export default {
input: "src/index.ts",
output: {
sourcemap: true,
dir: "dist",
},
plugins: [
mdx({
jsxImportSource: "solid-jsx",
remarkPlugins: [remarkGfm, remarkMdxToc],
rehypePlugins: [
rehypeHighlight,
rehypeSlug,
[
rehypeAutolinkHeadings,
{
properties: { class: "header-anchor" },
content: { type: "text", value: "#" },
},
],
],
}),
typescript(),
json(),
dynamicImportVars.default(),
],
external: ["solid-jsx/jsx-runtime"]
};