diff --git a/index.js b/index.js index 165c105..b37bd89 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,7 @@ const ABSOLUTE_PATTERN = /^(\s*)\/([^'"`]*)/g; const VUE_PATTER = /^\s*(@)\/([^'"`]*)/g; const replace = (baseURI, dirname = '', dotsReplacement = undefined) => - (match, dots, rest) => `${baseURI}${path.join(dirname, dotsReplacement === undefined ? dots : dotsReplacement, rest)}`; + (match, dots, rest) => `${baseURI}${path.posix.join(dirname, dotsReplacement === undefined ? dots : dotsReplacement, rest)}`; module.exports = function ({ types: t }) { return {