From bf7e6262470e62159321b15e236849b9d91eeaae Mon Sep 17 00:00:00 2001 From: Scott Motte Date: Wed, 31 May 2023 11:41:59 -0700 Subject: [PATCH] Default fs to false as it cannot be duplicated in the browser --- CHANGELOG.md | 2 +- package.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 925d2fc3..7311398f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file. See [standa ### Removed -- Removed `browser` key in package.json. These were set to false incorrectly as of 16.1. Instead, if using dotenv on the front-end make sure to include polyfills for `path`, `os`, `fs`, and `crypto`. [Browserify](https://browserify.org/) provides these. +- Removed `browser` key in package.json. These were set to false incorrectly as of 16.1. Instead, if using dotenv on the front-end make sure to include polyfills for `path`, `os`, and `crypto`. [node-polyfill-webpack-plugin](https://github.com/Richienb/node-polyfill-webpack-plugin) provides these. ## [16.1.2](https://github.com/motdotla/dotenv/compare/v16.1.1...v16.1.2) (2023-05-31) diff --git a/package.json b/package.json index a2f8921b..fb3258b9 100644 --- a/package.json +++ b/package.json @@ -57,5 +57,8 @@ }, "engines": { "node": ">=12" + }, + "browser": { + "fs": false } }