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

Make loadAsFileSync() work the same as async loadAsFile() #146

Merged
merged 3 commits into from
Apr 5, 2018

Conversation

lbogdan
Copy link
Contributor

@lbogdan lbogdan commented Jan 8, 2018

Fixes #142.

It works fine on CodeSandbox since the end of November. Although not being familiar with the project, I might have missed something.

@ljharb
Copy link
Member

ljharb commented Jan 9, 2018

Thanks! This will need some new tests (that would have failed prior to this PR) to help illustrate the improvement.

@ljharb ljharb force-pushed the fix/resolve-sync branch 2 times, most recently from 4eebf94 to c449d48 Compare April 5, 2018 06:01
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with the added failing test. Thanks!

@ljharb ljharb merged commit 7a2edf8 into browserify:master Apr 5, 2018
ljharb added a commit that referenced this pull request Apr 7, 2018
 - [New] `resolve.sync`: add `opts.pathFilter` (#146)
 - [Fix] Make loadAsFileSync() work the same as async loadAsFile() (#146)
 - [Fix] support `opts.package` in non-relative lookups (#152)
 - [Docs] fix default “isFile” implementations
 - [Docs] fix options formatting
 - [Refactor] cache default isFile functions at module level
 - [Refactor] use "basedir" instead of "y", because meaningful variable names
 - [Tests] add some tests for a non-directory basedir (#154)
 - [Tests] work around npm SSL issue
 - [Tests] add some tests for browser field
 - [Tests] add node 8 and 9 to appveyor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants