Skip to content

Commit c1204dc

Browse files
committed
fix: switch to our fork acorn typescript plugin
1 parent cf56973 commit c1204dc

File tree

5 files changed

+14
-18
lines changed

5 files changed

+14
-18
lines changed

packages/svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
"@jridgewell/sourcemap-codec": "^1.5.0",
151151
"@types/estree": "^1.0.5",
152152
"acorn": "^8.12.1",
153-
"acorn-typescript": "^1.4.13",
153+
"@sveltejs/acorn-typescript": "^1.0.0",
154154
"aria-query": "^5.3.1",
155155
"axobject-query": "^4.1.0",
156156
"clsx": "^2.1.1",

packages/svelte/src/compiler/phases/1-parse/acorn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/** @import { Node } from 'acorn' */
33
import * as acorn from 'acorn';
44
import { walk } from 'zimmerframe';
5-
import { tsPlugin } from 'acorn-typescript';
5+
import { tsPlugin } from '@sveltejs/acorn-typescript';
66
import { locator } from '../../state.js';
77

88
const ParserWithTS = acorn.Parser.extend(tsPlugin({ allowSatisfies: true }));

packages/svelte/src/compiler/phases/1-parse/ambient.d.ts

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

packages/svelte/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"allowJs": true,
1616
"checkJs": true,
1717
"paths": {
18-
"acorn-typescript": ["./src/compiler/phases/1-parse/ambient.d.ts"],
1918
"svelte": ["./src/index.d.ts"],
2019
"svelte/action": ["./src/action/public.d.ts"],
2120
"svelte/compiler": ["./src/compiler/public.d.ts"],

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)