mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
Add support for web worker extensions to define their entry point via "browser"
This commit is contained in:
@@ -154,8 +154,6 @@ async function getExtensionPackageJSON(extensionPath) {
|
||||
}
|
||||
|
||||
if (packageJSON.browser) {
|
||||
packageJSON.main = packageJSON.browser;
|
||||
|
||||
let mainFilePath = path.join(extensionPath, packageJSON.browser);
|
||||
if (path.extname(mainFilePath) !== '.js') {
|
||||
mainFilePath += '.js';
|
||||
|
||||
Reference in New Issue
Block a user