Skip to content

Commit

Permalink
fix: add type
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Sep 22, 2024
1 parent 45802e8 commit 34af007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/style/preprocessors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface StylePreprocessorResults {

// .scss/.sass processor
const scss: StylePreprocessor = (source, map, options, load = require) => {
const { pathToFileURL, fileURLToPath } = load('url')
const { pathToFileURL, fileURLToPath }: typeof import('url') = load('url')
const nodeSass = load('sass') as typeof import('sass')
const data = getSource(source, options.filename, options.additionalData)
const finalOptions: import('sass').StringOptions<'sync'> = {
Expand Down

0 comments on commit 34af007

Please sign in to comment.