@taeopia/react-table
Version:
This is a table library for use in React.
25 lines (20 loc) • 691 B
JavaScript
/**
* @description Rollup 설정 모듈
* @author TAETAEO
* @since 2024.11.27 Wed 17:44:31
*/
import { getPlugins, getOutputOptions } from "./rollup.plugins.mjs";
import pkg from "./package.json" assert { type: "json" };
const extensions = [".js", ".jsx", ".ts", ".tsx", ".scss", ".css", ".sss", ".pcss"];
process.env.BABEL_ENV = "production";
export default {
input: "./src/index.ts",
output: getOutputOptions(pkg),
assetFileNames: "assets/[name]-[hash][extname]",
watch: {
include: "*",
exclude: "node_modules/**",
},
plugins: getPlugins(extensions, pkg),
external: [...Object.keys(pkg.peerDependencies || {}), /@testing-library/],
};