-
Hello! I create a small extension for Google Chrome. There I use devtools_page, and inside the script, I need to use a function from content-script.ts. However, I can't do it directly, I just write the name of the function in a string. As a result, the content-script function has no direct reference and Parcel treats it as unnecessary and removes it. With the The use of
The function in content-script.ts:
When called normally, Parcel returns me a file without the code, and with the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Do this global.handleSelectedElement = function handleSelectedElement() { ... |
Beta Was this translation helpful? Give feedback.
Do this