feat(rollup): Initial the configuration file
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
28
rollup.config.js
Normal file
28
rollup.config.js
Normal file
@ -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,
|
||||
}),
|
||||
],
|
||||
};
|
Reference in New Issue
Block a user