From 9568a6936f765a5fac678cf78c6215f1ea33767a Mon Sep 17 00:00:00 2001 From: Jacob Ebey Date: Tue, 22 Feb 2022 05:41:33 +0700 Subject: [PATCH] Add "sideEffects": false to package.json (#941) Add `"sideEffects": false` to package.json to allow frameworks that mix client and server code in the same files to tree-shake out fs-extra from client bundles. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 91894377..0fea8afa 100644 --- a/package.json +++ b/package.json @@ -62,5 +62,6 @@ "test-find": "find ./lib/**/__tests__ -name *.test.js | xargs mocha", "test": "npm run lint && npm run unit", "unit": "nyc node test.js" - } + }, + "sideEffects": false }