From fe4ed7e048b14331a75e40cabf48e4787d9b2b71 Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Mon, 11 Sep 2023 15:21:37 +0100 Subject: [PATCH] Mark `formik` as side-effect free (#3501) This will allow Formik's code to be removed by tree-shaking bundlers like Webpack or esbuild. --- .changeset/wise-games-battle.md | 5 +++++ packages/formik/package.json | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/wise-games-battle.md diff --git a/.changeset/wise-games-battle.md b/.changeset/wise-games-battle.md new file mode 100644 index 000000000..14e2abe54 --- /dev/null +++ b/.changeset/wise-games-battle.md @@ -0,0 +1,5 @@ +--- +"formik": patch +--- + +Mark `formik` as side-effect free in `package.json` diff --git a/packages/formik/package.json b/packages/formik/package.json index d991b48ca..37c47935d 100644 --- a/packages/formik/package.json +++ b/packages/formik/package.json @@ -37,6 +37,7 @@ "peerDependencies": { "react": ">=16.8.0" }, + "sideEffects": false, "scripts": { "test": "tsdx test --env=jsdom", "test:watch": "npm run test -- --watchAll",