aboutsummaryrefslogtreecommitdiff
path: root/rollup.config.js
blob: d22bb3920f17bcda783d8109b1814731af0e7daa (plain) (blame)
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
import { terser } from "rollup-plugin-terser";
import json from "@rollup/plugin-json";
import typescript from "@rollup/plugin-typescript";

module.exports = {
	input: {
		"javascript": "src/javascript.ts",
		"typescript": "src/typescript.ts",
		"vue-javascript": "src/vue-javascript.ts",
		"vue-typescript": "src/vue-typescript.ts",
	},
	output: {
		dir: ".",
		entryFileNames: "[name].js",
		format: "cjs",
	},
	plugins: [
		json({
			compact: true,
			namedExports: false,
		}),
		typescript(),
		terser({
			compress: true,
			output: {
				comments: false,
			},
			sourcemap: false,
		}),
	],
};