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

loader-utils: Move resolvePath from core to loader-utils #568

Merged
merged 2 commits into from
Dec 18, 2019

Conversation

ibgreen
Copy link
Collaborator

@ibgreen ibgreen commented Dec 18, 2019

To support #541, non-core modules such as images may need to import resolvePath.

This PR moves resolvePath from core to loader-utils to minimize the size impact on the images module (which currently has no dependencies and could be used stand-alone).

An alternate mechanism would be to make resolvePath available through some global variable, so that it can be used dynamically if core has been imported..

@coveralls
Copy link

coveralls commented Dec 18, 2019

Coverage Status

Coverage increased (+5.5%) to 52.693% when pulling bd31ead on ib/move-reolve-path-to-loader-utils into f5df335 on master.

modules/core/src/index.js Outdated Show resolved Hide resolved
@ibgreen ibgreen merged commit 5e163b2 into master Dec 18, 2019
@ibgreen ibgreen deleted the ib/move-reolve-path-to-loader-utils branch December 18, 2019 18:56
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

Successfully merging this pull request may close these issues.

None yet

3 participants