@@ -339,24 +339,24 @@ export class BlockFactory {
339
339
// NOTE: No need to run preprocessor - we assume that Compiled CSS has already been preprocessed.
340
340
// Parse the definition file into an AST
341
341
const definitionAst = this . postcssImpl . parse ( file . definitionContents ) ;
342
- const definitionFilepath = this . importer . filesystemPath ( file . definitionIdentifier , this . configuration ) || "<unknown filepath>" ;
342
+ const dfnDebugIdentifier = this . importer . debugIdentifier ( file . definitionIdentifier , this . configuration ) ;
343
343
344
344
// Parse the CSS contents into an AST
345
345
const cssContentsAst = this . postcssImpl . parse ( file . cssContents ) ;
346
- const cssContentsFilepath = this . importer . filesystemPath ( file . identifier , this . configuration ) || "<unknown filepath>" ;
346
+ const cssDebugIdentifier = this . importer . debugIdentifier ( file . identifier , this . configuration ) ;
347
347
348
348
// TODO: Sourcemaps?
349
349
350
350
// Sanity check! Did we actually get contents for both ASTs?
351
351
if ( ! definitionAst || ! definitionAst . nodes ) {
352
352
throw new CssBlockError ( `Unable to parse definition file into AST!` , {
353
- filename : definitionFilepath ,
353
+ filename : dfnDebugIdentifier ,
354
354
} ) ;
355
355
}
356
356
357
357
if ( ! cssContentsAst || ! cssContentsAst . nodes ) {
358
358
throw new CssBlockError ( `Unable to parse CSS contents into AST!` , {
359
- filename : cssContentsFilepath ,
359
+ filename : cssDebugIdentifier ,
360
360
} ) ;
361
361
}
362
362
0 commit comments