Skip to content

Commit

Permalink
fix(tools): css-imports specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Sep 2, 2024
1 parent 921e5d5 commit b148b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pfe-tools/typescript/transformers/css-imports.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function cacheCssImportSpecsAbsolute(sourceFile) {

function getStylesheetContent(specifier, fileName, minify) {
let content; let pathname;
if (specifier.startsWith('./')) {
if (specifier.startsWith('.')) {
const dir = pathToFileURL(fileName);
const url = new URL(specifier, dir);
({ pathname } = url);
Expand Down

0 comments on commit b148b9b

Please sign in to comment.