Skip to content

Commit 7728ed5

Browse files
committed
chore: pretty imports for plugin
1 parent 597b41f commit 7728ed5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/index.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
import getPort from 'get-port'
21
import { readFileSync, writeFileSync } from 'node:fs'
32
import { createServer } from 'node:http'
43
import { dirname, resolve } from 'node:path'
54
import { fileURLToPath } from 'node:url'
5+
import getPort from 'get-port'
66
import openLink from 'open'
77
import colors from 'picocolors'
88
import sanitize from 'sanitize-filename'
99
import serveHandler from 'serve-handler'
10-
import { PluginOption, ResolvedConfig, createLogger } from 'vite'
10+
import { createLogger, PluginOption, ResolvedConfig } from 'vite'
1111
import { server } from 'websocket'
1212
import type { connection } from 'websocket'
1313
import { Banner } from './banner.js'
1414
import { userConfig } from './config.js'
15-
import { grants, regexpScripts, regexpStyles, styleTemplate } from './constants.js'
15+
import {
16+
grants,
17+
regexpScripts,
18+
regexpStyles,
19+
styleTemplate
20+
} from './constants.js'
1621
import css from './css.js'
1722
import { defineGrants, removeDuplicates, transform } from './helpers.js'
1823
import type { UserscriptPluginConfig } from './types.js'

0 commit comments

Comments
 (0)