monorepo-microservice-rbac/packages/i18n/rollup.config.js
2023-08-27 14:37:59 +08:00

24 lines
597 B
JavaScript

import typescript from "rollup-plugin-typescript2";
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import { terser } from "rollup-plugin-terser";
export default {
input: "src/index.ts",
output: [
{
file: "dist/index.js",
format: "esm",
sourcemap: true,
}
],
external: ['i18next', 'react-i18next', 'i18next-browser-languagedetector', 'i18next-http-backend'],
plugins: [
typescript({
useTsconfigDeclarationDir: true,
}),
resolve({ preferBuiltins: true }),
commonjs(),
terser()
],
};