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 e22861e
Showing 1 changed file with 1 addition and 5 deletions.
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 e22861e

Please sign in to comment.