Skip to content

Commit

Permalink
Mark formik as side-effect free (#3501)
Browse files Browse the repository at this point in the history
This will allow Formik's code to be removed by tree-shaking bundlers like Webpack or esbuild.
  • Loading branch information
markspolakovs committed Sep 11, 2023
1 parent aa1cf43 commit fe4ed7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wise-games-battle.md
@@ -0,0 +1,5 @@
---
"formik": patch
---

Mark `formik` as side-effect free in `package.json`
1 change: 1 addition & 0 deletions packages/formik/package.json
Expand Up @@ -37,6 +37,7 @@
"peerDependencies": {
"react": ">=16.8.0"
},
"sideEffects": false,
"scripts": {
"test": "tsdx test --env=jsdom",
"test:watch": "npm run test -- --watchAll",
Expand Down

1 comment on commit fe4ed7e

@vercel
Copy link

@vercel vercel bot commented on fe4ed7e Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

formik-docs – ./website

formik-docs-git-main-formik.vercel.app
formik-docs-formik.vercel.app
formik-docs.vercel.app
www.formik.org
formik.org

Please sign in to comment.