mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Fix compile of the github extension
All of our webpack scripts are modules now
This commit is contained in:
@@ -63,11 +63,9 @@ function updateExtensionPackageJSON(input: Stream, update: (data: any) => any):
|
||||
|
||||
function fromLocal(extensionPath: string, forWeb: boolean, disableMangle: boolean): Stream {
|
||||
|
||||
const esm = JSON.parse(fs.readFileSync(path.join(extensionPath, 'package.json'), 'utf8')).type === 'module';
|
||||
|
||||
const webpackConfigFileName = forWeb
|
||||
? `extension-browser.webpack.config.${!esm ? 'js' : 'cjs'}`
|
||||
: `extension.webpack.config.${!esm ? 'js' : 'cjs'}`;
|
||||
? `extension-browser.webpack.config.js`
|
||||
: `extension.webpack.config.js`;
|
||||
|
||||
const isWebPacked = fs.existsSync(path.join(extensionPath, webpackConfigFileName));
|
||||
let input = isWebPacked
|
||||
|
||||
Reference in New Issue
Block a user