-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Windows support - Revision to #137 and #126 #144
Conversation
Add support for Windows in a minimally intrusive way.
I'll check it out as soon as I can find the time! Thx for taking a further look at it! |
The patch works, but isn't still ideal yet. Running the simplest test project from the repo (simple-build) using the repo version of browserify I got non-working output and ugly full paths in require.define for the foo and bar dependencies. Using this patch I can get it to work, but looking at the output there is one minor annoyance: the file 'entry.js' is defined and required as "\entry.js" instead of "/entry.js". Please see below a couple example lines of browserify.js as produced when run on the simple-build example project:
Forgot to say: all this is on Windows (7 x64) which is my primary environment (have spare MacBook Air if you want me to test there too). |
I believe I took care of this in the original pull request, so maybe something has been modified? Try with previous pull requests and see if they work and then try to track what has changed and what hasn't. |
@ddotlic I believe my last commit addresses your concern. You are right, @cjblomqvist , your code had already fixed this cosmetic flaw. My initial pull request included only the lines of code that I understood to be necessary so that all of the changes are completely defensible. I tested this again on Win7 and on OS X. Thanks to those who have tested; please test again with the new commit. |
@jdahlq Yes it does! Looks great, thanks. Tested on Win7 x64. |
Any chance of getting this merged? |
@jdahlq Since it looks like I'll be using your fork for the foreseeable future, would you mind please rebasing it on top of @substack's latest changes? :) |
@domenic Done! I've never merged back into a fork before, but it looks like it worked (though I haven't tested it yet). I'll try to keep it up to date. |
This is a revision of issues #137 and #126. I tested it on Windows and Mac OS X. Pull request #137 breaks Browserify for *nix because it replaces some of the *nix regexes with Windows-specific ones (e.g. instead of searching for a forward slash it searches for a backslash).
This new pull request removes most of the changes that seem unnecessary in #137. It changes only two areas of the lib/wrap.js code:
Interested parties please test this code, especially because I removed quite a few of the previously proposed modifications in #137. I tested it on a project of moderate complexity.