Effect CommunityEC
Effect Community2w ago
59 replies
winston

Effect Bundle Size Issue with Minification and Treeshaking

My effect bundle size is huge.

import { KeyValueStore } from '@effect/platform/KeyValueStore';
import { BrowserKeyValueStore, BrowserRuntime } from '@effect/platform-browser';
import { Data, Effect, Option, Schema } from 'effect';
import type { ParseError } from 'effect/ParseResult';


These are the only things I am importing from Effect, but even on my minified builds, the IIFE size is 360KB. I am developing bookmarklets, and cannot exceed 4KB due to browser limitations. Is this size to be expected? I am using Bun.build to perform my minification and treeshaking.
Was this page helpful?