Skip to content

Commit

Permalink
fix: starting ~ in style paths
Browse files Browse the repository at this point in the history
  • Loading branch information
CompuIves committed Jan 31, 2025
1 parent 11124f9 commit 4e7102f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/app/src/sandbox/eval/transpilers/postcss/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ export default async function (
postcssImportPlugin({
resolve: async (id: string, root: string) => {
try {
const result = await resolveCSSFile(loaderContext, id, root);
// Angular specific, remove the ~ from the path to determine if it's a dependency
const sanitizedPath = id.replace(/^~/, '');
const result = await resolveCSSFile(
loaderContext,
sanitizedPath,
root
);

return result.module.path;
} catch (e) {
Expand Down

0 comments on commit 4e7102f

Please sign in to comment.