From f9e6cc95e251ab484fd60c247dbd8909ecdedc5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moreno?= Date: Wed, 10 Jul 2019 11:12:30 +0200 Subject: [PATCH] Update extensions/shared.webpack.config.js --- extensions/shared.webpack.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/shared.webpack.config.js b/extensions/shared.webpack.config.js index ecf74a0eb24..2fba65c92bd 100644 --- a/extensions/shared.webpack.config.js +++ b/extensions/shared.webpack.config.js @@ -15,6 +15,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin'); const { NLSBundlePlugin } = require('vscode-nls-dev/lib/webpack-bundler'); module.exports = function withDefaults(/**@type WebpackConfig*/extConfig) { + // Need to find the top-most `package.json` file const folderName = path.relative(__dirname, extConfig.context).split(/[\\\/]/)[0]; const pkgPath = path.join(__dirname, folderName, 'package.json'); const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8')); -- GitLab