Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
windows fix
  • Loading branch information
Rich-Harris committed Jun 3, 2017
1 parent 52b17df commit 4691e5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/defaults.js
@@ -1,5 +1,5 @@
import { lstatSync, readdirSync, readFileSync, realpathSync } from './fs.js'; // eslint-disable-line
import { basename, dirname, resolve } from './path.js';
import { basename, dirname, isAbsolute, resolve } from './path.js';
import { blank } from './object.js';
import error from './error.js';

Expand Down Expand Up @@ -38,7 +38,7 @@ export function resolveId ( importee, importer ) {

// external modules (non-entry modules that start with neither '.' or '/')
// are skipped at this stage.
if ( importer !== undefined && !/^[\/\.]/.test( importee[0] ) ) return null;
if ( importer !== undefined && ( isAbsolute( importee ) || importee[0] === '.' ) ) return null;

// `resolve` processes paths from right to left, prepending them until an
// absolute path is created. Absolute importees therefore shortcircuit the
Expand Down

0 comments on commit 4691e5a

Please sign in to comment.