You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using parcel to build a chrome extension, in which need to create a window at runtime. The entry of the window is generate via chrome.runtime.getURL("popup.html"). But parcel can not handle it properly.
functioncreatePopupAndSend(message: DownloadEvent){chrome.windows.create({url: chrome.runtime.getURL("popup.html"),type: "popup",// Assume a suitable size for the popup window.width: 600,height: 500,},(newWindow)=>{if(newWindow&&newWindow.id!==undefined){popupWindowId=newWindow.id;// Delay sending the message to give the popup time to load.setTimeout(()=>{chrome.runtime.sendMessage(message);},500);}});}
🐛 bug report
I am using parcel to build a chrome extension, in which need to create a window at runtime. The entry of the window is generate via
chrome.runtime.getURL("popup.html")
. But parcel can not handle it properly.🎛 Configuration (.babelrc, package.json, cli command)
manifest.json
build command
parcel build manifest.json --config @parcel/config-webextension --no-scope-hoist",
🤔 Expected Behavior
Build everything related to the entry
popup.html
should be built.😯 Current Behavior
Everything related to
popup.html
is not built.💁 Possible Solution
🔦 Context
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: