Skip to content

fix: add side effects flag so bundlers don't treeshake in prod#22

Open
eni4sure wants to merge 1 commit intoalloc:mainfrom
eni4sure:patch-1
Open

fix: add side effects flag so bundlers don't treeshake in prod#22
eni4sure wants to merge 1 commit intoalloc:mainfrom
eni4sure:patch-1

Conversation

@eni4sure
Copy link

@eni4sure eni4sure commented Mar 10, 2026

I added "sideEffects": true to package.json to prevent bundlers (e.g. Vite) from incorrectly tree-shaking the package during production builds.

Context

While using drizzle-plus in a TanStack-based project, the package was being tree-shaken in production builds and resulted in an error because the library polyfills for drizzle-orm were not added.

Changes

  • Added "sideEffects": true to package.json.

This ensures bundlers such as Vite do not remove code that relies on side effects during production builds.

@eni4sure eni4sure changed the title fix: add side effects flag so bundlers don't treeshake the extension fix: add side effects flag so bundlers don't treeshake in prod Mar 10, 2026
@eni4sure
Copy link
Author

CC: @aleclarson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant