File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,6 @@ exports.convertPropToJoinKeyProp = function (props, opts) {
271271
272272exports . getRealPath = function ( path_str , stack_index ) {
273273 var path = require ( "path" ) ; // for now, load here (only when needed)
274- var pathIsAbsolute = require ( 'path-is-absolute' ) ;
275274 var cwd = process . cwd ( ) ;
276275 var err = new Error ( ) ;
277276 var tmp = err . stack . split ( / \r ? \n / ) [ typeof stack_index !== "undefined" ? stack_index : 3 ] , m ;
@@ -283,7 +282,7 @@ exports.getRealPath = function (path_str, stack_index) {
283282 } else if ( ( m = tmp . match ( / ^ \s * a t \s + .+ \s + \( ( .+ ) : \d + : \d + \) $ / ) ) !== null ) {
284283 cwd = path . dirname ( m [ 1 ] ) ;
285284 }
286-
285+ var pathIsAbsolute = path . isAbsolute || require ( 'path-is-absolute' ) ;
287286 if ( ! pathIsAbsolute ( path_str ) ) {
288287 path_str = path . join ( cwd , path_str ) ;
289288 }
You can’t perform that action at this time.
0 commit comments