Add support for web worker extensions to define their entry point via "browser"

This commit is contained in:
Alex Dima
2020-07-24 10:40:39 +02:00
parent 98e653e82c
commit a7b1e06283
9 changed files with 39 additions and 20 deletions

View File

@@ -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';