Skip to content

Commit 3d901e6

Browse files
Timothy Lindvalltimlindvall
Timothy Lindvall
authored andcommitted
fix: Throw in BlockFactory if compiled css file.
1 parent 6f04b6a commit 3d901e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@css-blocks/core/src/BlockParser/BlockFactory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class BlockFactory {
185185
let file = await this.importer.import(identifier, this.configuration);
186186
if (file.type === "ImportedCompiledCssFile") {
187187
// TODO: Process ImportedCompiledCssFile type.
188-
return new Block("foo", "bar");
188+
throw new Error("Imported Compiled CSS files aren't supported yet.");
189189
} else {
190190
let block = await this._importAndPreprocessBlock(file);
191191
debug(`Finalizing Block object for "${block.identifier}"`);

0 commit comments

Comments
 (0)