Remove remaining process.env
Summary: Per title Reviewed By: passy Differential Revision: D32721205 fbshipit-source-id: 8e8a7fcac7d73f32d7fb59f852a8099cfe20e542
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2b4981c7cb
commit
058785a509
@@ -107,7 +107,10 @@ export default async (store: Store, _logger: Logger) => {
|
||||
const classicPlugins = initialPlugins.filter(
|
||||
(p) => !isSandyPlugin(p.details),
|
||||
);
|
||||
if (process.env.NODE_ENV !== 'test' && classicPlugins.length) {
|
||||
if (
|
||||
getRenderHostInstance().serverConfig.env.NODE_ENV !== 'test' &&
|
||||
classicPlugins.length
|
||||
) {
|
||||
console.warn(
|
||||
`${
|
||||
classicPlugins.length
|
||||
@@ -154,7 +157,7 @@ export function getLatestCompatibleVersionOfEachPlugin<
|
||||
}
|
||||
|
||||
async function getBundledPlugins(): Promise<Array<BundledPluginDetails>> {
|
||||
if (process.env.NODE_ENV === 'test') {
|
||||
if (getRenderHostInstance().serverConfig.env.NODE_ENV === 'test') {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user