Skip to content

Commit 42370c3

Browse files
committed
[skip ci] Clarify module warning comment
1 parent 345115e commit 42370c3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/lib/main.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,8 @@ const scriptElement = /** @type {HTMLScriptElement | null} */ (
343343

344344
// Warn if the CMS script comes with `type="module"`. Earlier versions of Sveltia CMS were built and
345345
// shipped as ES modules. Therefore, some users may have added the attribute to the script tag.
346-
// Additionally, AI tools tend to add this attribute because they have outdated knowledge about
347-
// Sveltia CMS being a module. We recommend removing the `type="module"` attribute from the CMS
348-
// script tag to avoid unexpected behavior.
346+
// Additionally, Claude tends to add it due to outdated/inaccurate knowledge. We recommend removing
347+
// the attribute from the CMS script tag to avoid unexpected behavior.
349348
if (scriptElement?.type === 'module') {
350349
console.warn(
351350
'The Sveltia CMS script is not an ES module. Remove the "type="module" attribute from the ' +

0 commit comments

Comments
 (0)