diff options
author | 2021-03-23 20:15:44 -0700 | |
---|---|---|
committer | 2021-03-23 20:15:44 -0700 | |
commit | 195b131f430536a33db244267d35b614bb014d60 (patch) | |
tree | 71875329f236481cbe8920010448bc884cc87865 /src/compiler/parse/index.ts | |
parent | 5492a2dc4e26a6fbcbb99b24e16045522c8e316a (diff) | |
download | astro-195b131f430536a33db244267d35b614bb014d60.tar.gz astro-195b131f430536a33db244267d35b614bb014d60.tar.zst astro-195b131f430536a33db244267d35b614bb014d60.zip |
add support for frontmatter scripts
Diffstat (limited to 'src/compiler/parse/index.ts')
-rw-r--r-- | src/compiler/parse/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/parse/index.ts b/src/compiler/parse/index.ts index f98119d73..00eccdb7d 100644 --- a/src/compiler/parse/index.ts +++ b/src/compiler/parse/index.ts @@ -226,7 +226,7 @@ export default function parse(template: string, options: ParserOptions = {}): As parser.error( { code: 'duplicate-style', - message: 'You can only have one top-level <style> tag per component', + message: 'You can only have one <style> tag per HMX file', }, parser.css[1].start ); @@ -240,7 +240,7 @@ export default function parse(template: string, options: ParserOptions = {}): As parser.error( { code: 'invalid-script', - message: 'A component can only have one <script astro> element', + message: 'A component can only have one frontmatter (---) script', }, hmx_scripts[1].start ); |