2020-02-13 17:36:19 +04:00
|
|
|
import { terser } from "rollup-plugin-terser";
|
|
|
|
import json from "@rollup/plugin-json";
|
|
|
|
import typescript from "@rollup/plugin-typescript";
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
input: {
|
2020-02-14 13:04:00 +04:00
|
|
|
"javascript": "src/javascript.ts",
|
|
|
|
"typescript": "src/typescript.ts",
|
|
|
|
"vue-javascript": "src/vue-javascript.ts",
|
|
|
|
"vue-typescript": "src/vue-typescript.ts",
|
2020-02-13 17:36:19 +04:00
|
|
|
},
|
|
|
|
output: {
|
|
|
|
dir: ".",
|
|
|
|
entryFileNames: "[name].js",
|
|
|
|
format: "cjs",
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
json({
|
|
|
|
compact: true,
|
|
|
|
namedExports: false,
|
|
|
|
}),
|
|
|
|
typescript(),
|
|
|
|
terser({
|
|
|
|
compress: true,
|
|
|
|
output: {
|
|
|
|
comments: false,
|
|
|
|
},
|
|
|
|
sourcemap: false,
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
};
|