diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 16:36:19 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 16:36:19 +0300 |
commit | 34d55a21625de556247ccefa095ef17c7dcf9d03 (patch) | |
tree | dbe3fd9f74b623db70f4b6412131d6f9b2422ad5 /rollup.config.js | |
parent | 443af8609fc463eede6d2c5d8398a239445fb87c (diff) | |
download | eslint-config-34d55a21625de556247ccefa095ef17c7dcf9d03.tar.xz eslint-config-34d55a21625de556247ccefa095ef17c7dcf9d03.zip |
feat(rollup): Initial the configuration file
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'rollup.config.js')
-rw-r--r-- | rollup.config.js | 28 |
1 files changed, 28 insertions, 0 deletions
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, + }), + ], +}; |