From cdb3bad114d5d77444c2049299069bd01d1808bf Mon Sep 17 00:00:00 2001 From: Benoit Tremblay Date: Fri, 27 Dec 2019 15:05:13 -0500 Subject: [PATCH] Improve tree shaking by adding sideEffects false (fix #241) --- packages/react-cookie/package.json | 1 + packages/universal-cookie-express/package.json | 1 + packages/universal-cookie-koa/package.json | 1 + packages/universal-cookie/package.json | 1 + 4 files changed, 4 insertions(+) diff --git a/packages/react-cookie/package.json b/packages/react-cookie/package.json index 1e9e0c2..1af0dfa 100644 --- a/packages/react-cookie/package.json +++ b/packages/react-cookie/package.json @@ -4,6 +4,7 @@ "description": "Universal cookies for React", "main": "cjs/index.js", "module": "es6/index.js", + "sideEffects": false, "files": [ "es6", "cjs", diff --git a/packages/universal-cookie-express/package.json b/packages/universal-cookie-express/package.json index 0b67fdb..ce42074 100644 --- a/packages/universal-cookie-express/package.json +++ b/packages/universal-cookie-express/package.json @@ -4,6 +4,7 @@ "description": "Hook cookies get/set on Express for server-rendering", "main": "cjs/index.js", "module": "es6/index.js", + "sideEffects": false, "files": [ "lib", "es6", diff --git a/packages/universal-cookie-koa/package.json b/packages/universal-cookie-koa/package.json index 1a6a260..a272de7 100644 --- a/packages/universal-cookie-koa/package.json +++ b/packages/universal-cookie-koa/package.json @@ -4,6 +4,7 @@ "description": "Hook cookies get/set on Koa for server-rendering", "main": "cjs/index.js", "module": "es6/index.js", + "sideEffects": false, "files": [ "lib", "es6", diff --git a/packages/universal-cookie/package.json b/packages/universal-cookie/package.json index 78ff085..58cc456 100644 --- a/packages/universal-cookie/package.json +++ b/packages/universal-cookie/package.json @@ -4,6 +4,7 @@ "description": "Universal cookies for JavaScript", "main": "cjs/index.js", "module": "es6/index.js", + "sideEffects": false, "files": [ "lib", "es6",