From 8127ac858344d921d1e4cda49009372ded6226d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Sat, 23 Dec 2023 19:26:33 +0400 Subject: [PATCH] chore: remove min build --- rollup.config.js | 36 ++++++++++-------------------------- 1 file changed, 10 insertions(+), 26 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 25abcb5..9609e74 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,17 +1,15 @@ import { swc } from "rollup-plugin-swc3"; import ts from "rollup-plugin-ts"; -const swcPlugin = (minify) => - swc({ - tsconfig: false, - minify, - jsc: { - parser: { - syntax: "typescript", - }, - target: "es2018", +const swcPlugin = swc({ + tsconfig: false, + jsc: { + parser: { + syntax: "typescript", }, - }); + target: "es2018", + }, +}); const tsPlugin = ts({ transpiler: "swc" }); @@ -28,21 +26,7 @@ const buildEs = ({ file: output, format: "es", }, - plugins: [swcPlugin(false)], -}); - -const buildMin = ({ - input = "src/index.tsx", - output = "dist/index.min.mjs", - external = ignoreRelative, -} = {}) => ({ - input, - external, - output: { - file: output, - format: "es", - }, - plugins: [swcPlugin(true)], + plugins: [swcPlugin], }); const buildTypes = ({ @@ -59,4 +43,4 @@ const buildTypes = ({ plugins: [tsPlugin], }); -export default [buildEs(), buildMin(), buildTypes()]; +export default [buildEs(), buildTypes()];