Skip to content

Commit 65f162b

Browse files
committed
Remove implicit node dep from the language service
1 parent 02c9e89 commit 65f162b

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

packages/tailwindcss-language-service/src/completionProvider.ts

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import {
3737
addPixelEquivalentsToValue,
3838
} from './util/pixelEquivalents'
3939
import { customClassesIn } from './util/classes'
40-
import * as util from 'node:util'
4140
import * as postcss from 'postcss'
4241

4342
let isUtil = (className) =>
@@ -195,12 +194,10 @@ export function completionsFromClassList(
195194
} catch (err) {
196195
// If the selectors function fails we don't want to crash the whole completion process
197196
console.log('Error while trying to get selectors for variant')
198-
console.log(
199-
util.format({
200-
variant,
201-
err,
202-
}),
203-
)
197+
console.log({
198+
variant,
199+
err,
200+
})
204201
}
205202

206203
if (selectors.length === 0) {
@@ -255,12 +252,10 @@ export function completionsFromClassList(
255252
} catch (err) {
256253
// If the selectors function fails we don't want to crash the whole completion process
257254
console.log('Error while trying to get selectors for variant')
258-
console.log(
259-
util.format({
260-
variant,
261-
err,
262-
}),
263-
)
255+
console.log({
256+
variant,
257+
err,
258+
})
264259
}
265260

266261
if (selectors.length === 0) {

0 commit comments

Comments
 (0)