Skip to content

Commit

Permalink
fix: ModuleId deserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
shulandmimi committed Dec 9, 2023
1 parent bd07ee4 commit 0d4b7ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-shirts-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@farmfe/js-plugin-sass': patch
---

change importer type
6 changes: 1 addition & 5 deletions js-plugins/sass/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,10 @@ export default function farmSassPlugin(
return pathToFileURL(relPath);
}
}
const splits = param.moduleId.split('?');
const result = await ctx.resolve(
{
source: url,
importer: {
relativePath: splits[0],
queryString: splits[1] ?? ''
},
importer: param.moduleId,
kind: 'cssAtImport'
},
{
Expand Down

0 comments on commit 0d4b7ef

Please sign in to comment.