import {defineConfig} from "rollup";
import typescript from "@rollup/plugin-typescript";

export default defineConfig({
    external: ["dayjs", "qs", "react", "react-router-dom"],
    input: ["src/date.ts", "src/language.ts", "src/fe-utility.ts"],
    plugins: [
        typescript({
            compilerOptions: {
                outDir: "build",
                declaration: true,
            },
        }),
    ],
    output: {
        dir: "build"
    },
});
