Created by: tharakawj
This attempts to implement the idea proposed in #3120 (closed).
In this implementation, the script(iframeScript.js
) that needs to be executed in the context of the iframe is bundled in a separate webpack build step. Then this script is imported as a text using webpack raw-loader in the main overlay script(index.js
) and inject to the iframe with a script tag. After the injected script is executed, it starts to communicate with the main script via some global hooks and continue to update overlay until there are no errors to show.
Based on #2961 (closed), #1944 (closed), using inline webpack raw-loader might not be a good idea. Any suggestions on that?