diff --git a/src/tests/transformers/tailwindcss.test.ts b/src/tests/transformers/tailwindcss.test.ts
index a9e21387..602584b4 100644
--- a/src/tests/transformers/tailwindcss.test.ts
+++ b/src/tests/transformers/tailwindcss.test.ts
@@ -222,6 +222,28 @@ describe('tailwindcss', () => {
expect(result).toContain('@import "./nonexistent.css"')
expect(result).not.toContain('"')
})
+
+ it('warns when a style tag fails to compile', async () => {
+ const { warn, error } = console
+ const warnings: string[] = []
+ console.warn = (message: string) => warnings.push(message)
+ console.error = () => {}
+
+ try {
+ // Raw and empty tags aren't compiled but still count towards the position
+ const html = ''
+ const result = await run(html, '/path/to/emails/welcome.vue')
+
+ expect(result).toContain('@import "./nonexistent.css"')
+ expect(warnings).toHaveLength(1)
+ expect(warnings[0]).toContain('[maizzle]')
+ expect(warnings[0]).toContain('