- Real Grid 컴포넌트 @rsone/components 로 모듈화 - 컴포넌트 동적 import 경로 수정(engName -> urlPath)
17 lines
480 B
TypeScript
17 lines
480 B
TypeScript
import path from "path";
|
|
import { defineConfig } from "tsup";
|
|
|
|
export default defineConfig((options) => ({
|
|
entry: ["components/index.ts"],
|
|
splitting: true,
|
|
treeshake: true,
|
|
clean: true,
|
|
dts: true,
|
|
format: ["esm"],
|
|
external: ["react", "react-dom", "realgrid", "realgrid-react"],
|
|
platform: "browser",
|
|
target: ["es2020"],
|
|
tsconfig: path.resolve(__dirname, "tsconfig.build.json"),
|
|
sourcemap: !options.watch,
|
|
minify: !options.watch,
|
|
})); |