From 34d55a21625de556247ccefa095ef17c7dcf9d03 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 17:36:19 +0400 Subject: feat(rollup): Initial the configuration file Signed-off-by: Valentin Popov --- rollup.config.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 rollup.config.js (limited to 'rollup.config.js') diff --git a/rollup.config.js b/rollup.config.js new file mode 100644 index 0000000..dcf90bf --- /dev/null +++ b/rollup.config.js @@ -0,0 +1,28 @@ +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", + }, + output: { + dir: ".", + entryFileNames: "[name].js", + format: "cjs", + }, + plugins: [ + json({ + compact: true, + namedExports: false, + }), + typescript(), + terser({ + compress: true, + output: { + comments: false, + }, + sourcemap: false, + }), + ], +}; -- cgit v1.2.3