Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Chrome content script target #5244

Open
ghost opened this issue Jul 9, 2017 · 1 comment
Open

Add Chrome content script target #5244

ghost opened this issue Jul 9, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 9, 2017

Do you want to request a feature or report a bug?
feature

What is the current behavior?
When I lazy load a chunk from a Chrome content script, it inserts a script tag into the page loaded in the active tab, which then causes the code to execute in the context of the webpage instead of that of the Chrome extension. It then throws an error as the webpackJsonp exists in the isolated execution environment and is not visible from the context of the webpage.

If the current behavior is a bug, please provide the steps to reproduce.
N/A

What is the expected behavior?
There should be a Chrome content script target available which uses the appropriate Chrome API calls to lazy load chunks in the isolated execution environment.

If this is a feature request, what is motivation or use case for changing the behavior?
There does not seem to be a way to lazily load chunks from a Chrome content script.

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

@rizwansoaib
Copy link

How to do this chunks xhr+eval can anybody show us code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant