You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Steve Gill (JIRA)" <ji...@apache.org> on 2015/06/20 00:05:00 UTC
[jira] [Created] (CB-9222) Browserify doesn't work on windows
Steve Gill created CB-9222:
------------------------------
Summary: Browserify doesn't work on windows
Key: CB-9222
URL: https://issues.apache.org/jira/browse/CB-9222
Project: Apache Cordova
Issue Type: Sub-task
Components: CordovaLib
Reporter: Steve Gill
Assignee: Steve Gill
Reported by [~vldmrrr]
The application builds and runs, but after running none of tests are working (I'm aware of issues with test-framework, so I've tried to run non-plugin tests), and there is a lot of messages in console: "Cannot find module .../platforms/ios/platform_www/cordova-js-src/exec".
Also I've found some potential problems with browserify workflow in Windows environment:
1. In lines 59, 62 and 71 of require-tr.js [1] - the regex pattern uses '\n' symbol to match line ending, but in my experiments this is not enough, and it is necessary to use '[\r\n]' to match line end properly (at least on Windows).
2. The line 174 in require-tr.js [1] introduces condition which is ambiguous. On POSIX systems, absolute paths are not passing this condition, since they starts with '/' but on Windows 'indexOf('/') !== 0' is true for absolute paths, so the code under if will be executed for such modules.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org