Skip to content

Commit

Permalink
use 'import type' as much as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
hmsk committed Apr 5, 2022
1 parent 4f9d13c commit 18ba472
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/assetsInjector.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Node, parse } from 'acorn'
import type { Node } from 'acorn'
import { parse } from 'acorn'
import { fullAncestor as walk } from 'acorn-walk'

const ASSET_TAG = /'\[VITE_PLUGIN_ELM_ASSET:(?<path>.+?)\]'/g
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { toESModule } from 'elm-esm'
//@ts-ignore
import compiler from 'node-elm-compiler'
import { relative } from 'path'
import { ModuleNode, Plugin } from 'vite'
import type { ModuleNode, Plugin } from 'vite'
import assetsInjector from './assetsInjector'
/* eslint-enable @typescript-eslint/ban-ts-comment */

Expand Down

0 comments on commit 18ba472

Please sign in to comment.