Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Sep 18, 2020
1 parent 6fcbf06 commit 516b76f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ export function createPostcssImportResolver({ path, urls, imports } = {}) {
if (!mapping) {
mapping = await getImportMap({ path, urls, imports });
}


// Webpcak interop
const url = id.replace(/^~/, '');

if (mapping.has(url)) {
return mapping.get(url);
}
Expand Down

0 comments on commit 516b76f

Please sign in to comment.