-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.ts
33 lines (32 loc) · 883 Bytes
/
rollup.config.ts
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
import babel from "@rollup/plugin-babel";
import commonjs from "@rollup/plugin-commonjs";
import resolve from "@rollup/plugin-node-resolve";
import typescript from "@rollup/plugin-typescript";
import globals from "rollup-plugin-node-globals";
import { terser } from "rollup-plugin-terser";
import html from "@rollup/plugin-html";
import json from "@rollup/plugin-json";
export default {
input: ["./src/index.tsx"],
output: {
dir: "dist",
format: "iife"
},
plugins: [
json(),
typescript(),
resolve({
preferBuiltins: true,
exportConditions: ["solid"],
extensions: [".ts", ".tsx"]
}),
commonjs(),
globals(),
babel({ babelHelpers: "bundled", extensions: [".ts", ".tsx"] }),
terser(),
html({
meta: [{ name: "robots", content: "noindex,nofollow", charset: "utf-8" }],
title: "5-0.knoblau.ch"
})
]
};