diff --git a/extensions/shared.webpack.config.js b/extensions/shared.webpack.config.js index ecf74a0eb24ed82e0c54a9dcff94627bf7e1ebb5..2fba65c92bd12f7189a139d93667d53413a96c70 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'));