From 32b061f87386b2b2685641579c0910beb2fb086c Mon Sep 17 00:00:00 2001 From: Zachary Williams Date: Tue, 8 Feb 2022 11:01:31 -0600 Subject: [PATCH] fix: remove nullish coalescing in js files to support node 12 --- npm/react/plugins/utils/get-transpile-folders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/react/plugins/utils/get-transpile-folders.js b/npm/react/plugins/utils/get-transpile-folders.js index b0b50dbec5ae..1c8feeaf85c0 100644 --- a/npm/react/plugins/utils/get-transpile-folders.js +++ b/npm/react/plugins/utils/get-transpile-folders.js @@ -2,7 +2,7 @@ const path = require('path') function getTranspileFolders (config) { - const rawFolders = config.addTranspiledFolders ?? [] + const rawFolders = config.addTranspiledFolders || [] const folders = rawFolders.map((folder) => path.resolve(config.projectRoot, folder)) // user can disable folders, so check first