Skip to content

Commit f9e6cc9

Browse files
authored
Update extensions/shared.webpack.config.js
1 parent cf64ef0 commit f9e6cc9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

extensions/shared.webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
1515
const { NLSBundlePlugin } = require('vscode-nls-dev/lib/webpack-bundler');
1616

1717
module.exports = function withDefaults(/**@type WebpackConfig*/extConfig) {
18+
// Need to find the top-most `package.json` file
1819
const folderName = path.relative(__dirname, extConfig.context).split(/[\\\/]/)[0];
1920
const pkgPath = path.join(__dirname, folderName, 'package.json');
2021
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));

0 commit comments

Comments
 (0)