From 8dbae83a3e4e96c3a8d96f7a3b40a7c19cf7bfdb Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Fri, 2 Dec 2022 22:21:16 +0000 Subject: [PATCH] Remove unused variable directoriesToTransform This was introduced in c73f590d8ebdba1f00bf473c65bb510f6a14eb15 but usage was removed in a6a46c0eba40983b792792829fb526e14fe1a92b and c93e97b6c1c6211a3d6aaa1c9fd3818fa43b8c2b. --- webpack.config.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 7940f4f6e..11ec8398b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -13,9 +13,6 @@ const LodashModuleReplacementPlugin = require('lodash-webpack-plugin'); const generateConfig = ({extensionPath, devMode=false, customOutputPath, analyzeBundle=false}) => { utils.verbose(`Generating webpack config. Extensions? ${!!extensionPath}. devMode: ${devMode}`); - /* which directories should be parsed by babel and other loaders? */ - const directoriesToTransform = [path.join(__dirname, 'src')]; - // Pins all react stuff, and uses hot loader's dom (can be used safely in production) // Format is either "libName" or "libName:libPath" const coreDeps = [ @@ -58,8 +55,6 @@ const generateConfig = ({extensionPath, devMode=false, customOutputPath, analyze // console.log("BUILDING WITH EXTENSIONS"); const dir = path.resolve(__dirname, path.dirname(extensionPath)); aliasesToResolve["@extensions"] = dir; - directoriesToTransform.push(dir); - // console.log("directoriesToTransform", directoriesToTransform); extensionData = JSON.parse(fs.readFileSync(extensionPath, {encoding: 'utf8'})); // console.log("extensionData", extensionData); }