From f54f1b7aa0a0c8b2fe63731973e39537e8c02299 Mon Sep 17 00:00:00 2001 From: MrTRyy Date: Tue, 7 May 2024 17:14:03 +0200 Subject: [PATCH 1/2] chore: Enable tree shaking and update rollup options in vite.config.ts --- vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 3775c52b2..6d30b4a88 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -18,15 +18,15 @@ export default defineConfig({ ], build: { copyPublicDir: false, - lib: { entry: path.resolve(__dirname, './lib/index.ts'), formats: ['es'], }, rollupOptions: { + treeshake: true, external: ['react', 'react-dom', 'styled-components', '@react-spring/web', 'react/jsx-runtime', 'color'], output: { - preserveModulesRoot: 'src', + preserveModulesRoot: '.', preserveModules: true, entryFileNames: ({ name: fileName }) => { return `${fileName}.js`; From 11969c2223e4a5c073a8738c8f8356923b759f38 Mon Sep 17 00:00:00 2001 From: MrTRyy Date: Tue, 7 May 2024 17:14:12 +0200 Subject: [PATCH 2/2] chore: Bump package.json version to 0.4.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4558d255c..275cc1f2f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "name": "TobiTRy" }, "private": false, - "version": "0.4.2", + "version": "0.4.3", "type": "module", "scripts": { "dev": "vite",