Skip to content

Commit

Permalink
refactor: use walk from estree-walker
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Apr 30, 2024
1 parent 68500cb commit 797969d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module "svelte/compiler" {
declare module "estree-walker" {
import type { Ast, Element, Text } from "svelte/types/compiler/interfaces";

type CustomElement<T> = Omit<Element, "type"> & T;
Expand Down
5 changes: 3 additions & 2 deletions src/preprocessors/optimize-imports.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { ImportDeclaration } from "estree-walker";
import { walk } from "estree-walker";
import MagicString from "magic-string";
import type { ImportDeclaration } from "svelte/compiler";
import { parse, walk } from "svelte/compiler";
import { parse } from "svelte/compiler";
import type { SveltePreprocessor } from "svelte/types/compiler/preprocess";
import { components } from "../component-index";
import { CarbonSvelte } from "../constants";
Expand Down

0 comments on commit 797969d

Please sign in to comment.