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 back support for the assetPlugin option #118

Closed
wants to merge 1 commit into from

Commits on Jan 11, 2018

  1. Add back support for the assetPlugin option

    Metro used to have support for "asset plugins", which allowed developers to specify arbitrary JS modules that could export a function for adding more fields to asset data objects. Some of this functionality was removed in the delta bundler work -- this PR adds it back.
    
    Test Plan: Made existing unit tests pass and added unit tests to test asset plugin behavior. Also tested E2E in a React Native project by adding `assetPlugin=/path/to/pluginModule` to a JS bundle URL and ensuring that the plugin ran.
    ide committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    5048985 View commit details
    Browse the repository at this point in the history