From 6c3752f080e30075a069469bcb4e4c719458af2b Mon Sep 17 00:00:00 2001 From: Diana Catalina Olarte Date: Wed, 27 Mar 2024 09:32:25 +1100 Subject: [PATCH] fix: remove env.development import in paragon-webpack-plugin --- lib/plugins/paragon-webpack-plugin/ParagonWebpackPlugin.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/plugins/paragon-webpack-plugin/ParagonWebpackPlugin.js b/lib/plugins/paragon-webpack-plugin/ParagonWebpackPlugin.js index 73b1bc611..5c19198ab 100644 --- a/lib/plugins/paragon-webpack-plugin/ParagonWebpackPlugin.js +++ b/lib/plugins/paragon-webpack-plugin/ParagonWebpackPlugin.js @@ -1,5 +1,4 @@ const { Compilation, sources } = require('webpack'); -const dotenv = require('dotenv'); const fs = require('fs'); const path = require('path'); const { @@ -15,12 +14,6 @@ const { } = require('./utils'); const resolvePrivateEnvConfig = require('../../resolvePrivateEnvConfig'); -// Add process env vars. Currently used only for setting the -// server port and the publicPath -dotenv.config({ - path: path.resolve(process.cwd(), '.env.development'), -}); - // Allow private/local overrides of env vars from .env.development for config settings // that you'd like to persist locally during development, without the risk of checking // in temporary modifications to .env.development.