Skip to content

Commit 10fedea

Browse files
committed
do not parse attributes ourselves
1 parent 849a349 commit 10fedea

File tree

4 files changed

+25
-80
lines changed

4 files changed

+25
-80
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"prettier": "^3.0.0",
5050
"rollup": "2.36.0",
5151
"rollup-plugin-typescript": "1.0.1",
52-
"svelte": "^5.0.0-next.106",
52+
"svelte": "file:../svelte/packages/svelte",
5353
"ts-node": "^10.1.1",
5454
"tslib": "^2.6.0",
5555
"typescript": "5.1.3"

pnpm-lock.yaml

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/embed.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import {
2727
RegularElement,
2828
SvelteElement,
2929
} from './print/nodes';
30-
import { extractAttributes } from './lib/extractAttributes';
3130
import { base64ToString } from './base64-string';
3231

3332
const {
@@ -67,13 +66,6 @@ export function embed(path: AstPath, _options: Options) {
6766
assignCommentsToNodes(node);
6867
if (node.options) {
6968
node.options.type = 'SvelteOptions';
70-
node.options.attributes = extractAttributes(getText(node.options, options));
71-
}
72-
if (node.module) {
73-
node.module.attributes = extractAttributes(getText(node.module, options));
74-
}
75-
if (node.instance) {
76-
node.instance.attributes = extractAttributes(getText(node.instance, options));
7769
}
7870
if (node.css) {
7971
node.css.content.type = 'StyleProgram';

src/lib/extractAttributes.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)