MCPcopy
hub / github.com/browserify/browserify / isExternalModule

Function isExternalModule

index.js:867–872  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

865 return regexp.test(file);
866}
867function isExternalModule (file) {
868 var regexp = process.platform === 'win32' ?
869 /^(\.|\w:)/ :
870 /^[\/.]/;
871 return !regexp.test(file);
872}
873function relativePath (from, to) {
874 // Replace \ with / for OS-independent behavior
875 return cachedPathRelative(from, to).replace(/\\/g, '/');

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…