diff options
author | 2021-07-01 08:42:07 -0400 | |
---|---|---|
committer | 2021-07-01 08:42:07 -0400 | |
commit | 6a660f1b08430fe6e8f0e0939220511827cb0bc0 (patch) | |
tree | 7955f2046acf6614a2763bda5bdb8a2ff9cbb5b2 /packages/astro-parser/src/parse/index.ts | |
parent | 81ea010906ef81eee0ab84d7bdeff96644744113 (diff) | |
download | astro-6a660f1b08430fe6e8f0e0939220511827cb0bc0.tar.gz astro-6a660f1b08430fe6e8f0e0939220511827cb0bc0.tar.zst astro-6a660f1b08430fe6e8f0e0939220511827cb0bc0.zip |
Implements low-level custom element support (#587)
* Implements low-level custom element support
* Changes based on self review
* Adds a changeset
* Polyfills are added even when not hydrating
* Remove hydrationMethod option
Punting on this idea until it's really needed.
Diffstat (limited to 'packages/astro-parser/src/parse/index.ts')
-rw-r--r-- | packages/astro-parser/src/parse/index.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/astro-parser/src/parse/index.ts b/packages/astro-parser/src/parse/index.ts index 7edb6235c..5718a2c74 100644 --- a/packages/astro-parser/src/parse/index.ts +++ b/packages/astro-parser/src/parse/index.ts @@ -29,6 +29,7 @@ export class Parser { js: Script[] = []; meta_tags = {}; last_auto_closed_tag?: LastAutoClosedTag; + feature_flags: 0 constructor(template: string, options: ParserOptions) { if (typeof template !== 'string') { @@ -266,5 +267,8 @@ export default function parse(template: string, options: ParserOptions = {}): As css: parser.css[0], // instance: instance_scripts[0], module: astro_scripts[0], + meta: { + features: parser.feature_flags + } }; } |