diff --git a/.changeset/orange-knives-smile.md b/.changeset/orange-knives-smile.md new file mode 100644 index 000000000..9bdac0c72 --- /dev/null +++ b/.changeset/orange-knives-smile.md @@ -0,0 +1,5 @@ +--- +'@astrojs/compiler': patch +--- + +Adds warnings indicating that the `data-astro-rerun` attribute can not be used on an external module ` +`; + +test('Issues warnings for data-astro-* attributes', async () => { + const result = await transform(FIXTURE); + assert.equal(result.diagnostics.length, 3); + assert.equal(result.diagnostics[0].code, 2000); + assert.equal(result.diagnostics[1].code, 2005); + assert.equal(result.diagnostics[2].code, 2010); +}); + +test.run();