Skip to content

Commit

Permalink
refactor: remove process.env references in ParagonWebpackPlugin, no s…
Browse files Browse the repository at this point in the history
…upported
  • Loading branch information
dcoa committed Jul 31, 2024
1 parent 4ac4d42 commit 2733312
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/plugins/paragon-webpack-plugin/ParagonWebpackPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ const {
injectParagonCoreStylesheets,
injectParagonThemeVariantStylesheets,
} = require('./utils');
const resolvePrivateEnvConfig = require('../../resolvePrivateEnvConfig');

// 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.
resolvePrivateEnvConfig('.env.private');

// Resolve configuration `env.config`.
const envConfigFile = path.resolve(process.cwd(), 'env.config.js');
Expand Down Expand Up @@ -64,7 +58,7 @@ class ParagonWebpackPlugin {
}
}

const paragonThemeUrls = envConfig?.PARAGON_THEME_URLS ?? process.env.PARAGON_THEME_URLS;
const paragonThemeUrls = envConfig?.PARAGON_THEME_URLS ?? {};

this.paragonThemeUrlsConfig = paragonThemeUrls;
}
Expand Down

0 comments on commit 2733312

Please sign in to comment.