Skip to content

Commit

Permalink
Merge pull request #1605 from nextstrain/victorlin/webpack-cleanup
Browse files Browse the repository at this point in the history
webpack: Remove unused variable `directoriesToTransform`
  • Loading branch information
jameshadfield authored Dec 7, 2022
2 parents 1895c92 + 8dbae83 commit e9ef80f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit e9ef80f

Please sign in to comment.