Skip to content

Commit e47b5a6

Browse files
committed
fix: update import paths to use 'vue/compiler-sfc' and remove deprecated references
1 parent daf5f42 commit e47b5a6

File tree

6 files changed

+3
-11
lines changed

6 files changed

+3
-11
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
"@types/stylus": "^0.48.43",
7171
"@unocss/preset-uno": "^0.50.8",
7272
"@vue/babel-plugin-jsx": "^1.4.0",
73-
"@vue/compiler-sfc": "3.5.13",
7473
"bumpp": "^8.2.1",
7574
"eslint": "^9.24.0",
7675
"esno": "^0.16.3",

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/prettierCode.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// import { parse } from '@vue/compiler-sfc'
2-
import { parse } from '@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js'
1+
import { parse } from 'vue/compiler-sfc'
32

43
const emptyStyle = /<style[\s\w'=]*>(\s*)/
54

src/transformCss.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import fsp from 'node:fs/promises'
22
import path from 'node:path'
3-
// import { parse } from '@vue/compiler-sfc'
4-
import { parse } from '@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js'
53
import { transformStyleToUnocss } from 'transform-to-unocss-core'
4+
import { parse } from 'vue/compiler-sfc'
65
import { compilerCss } from './compilerCss'
76
import { tail } from './tail'
87
import { transformVue } from './transformVue'

src/transformVue.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { CssType } from './utils'
2-
// import { parse } from '@vue/compiler-sfc'
3-
import { parse } from '@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js'
2+
import { parse } from 'vue/compiler-sfc'
43
import { compilerCss } from './compilerCss'
54
import { prettierCode } from './prettierCode'
65
import { transformCss } from './transformCss'

types/vue-compiler-sfc.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)