refactor: use unplugin-config (#3106)

* refactor: use `unplugin-config`

* fix: preserve indentation in generated code
This commit is contained in:
Kirk Lin
2023-10-08 17:31:55 +08:00
committed by GitHub
parent 1e95706f8b
commit a712a8e5a0
5 changed files with 82 additions and 102 deletions

54
pnpm-lock.yaml generated
View File

@@ -434,6 +434,9 @@ importers:
unocss:
specifier: ^0.53.4
version: 0.53.4(postcss@8.4.24)(rollup@2.79.1)(vite@4.4.0)
unplugin-config:
specifier: ^0.0.13
version: 0.0.13(rollup@2.79.1)(vite@4.4.0)
vite-plugin-compression:
specifier: ^0.5.1
version: 0.5.1(vite@4.4.0)
@@ -1939,6 +1942,10 @@ packages:
'@jridgewell/resolve-uri': 3.1.1
'@jridgewell/sourcemap-codec': 1.4.15
/@kirklin/logger@0.0.2:
resolution: {integrity: sha512-CGZ9HGmHGTcGnU8CDQm7RR7hZgxLyRHTIFpS1FDCQkVaipdL/poq72ibpKqqQflomgKRCYV6GReP7ZXEZeDx1w==}
dev: true
/@logicflow/core@1.2.9:
resolution: {integrity: sha512-3He1BXLYB+5bzgl28hZ24akLebPBGbnmNSvmKWZZdKn9jHVvqPbE3Yt3XEKzwTwSP92yPnGtkzx2FOOEgXa0iQ==}
dependencies:
@@ -11300,6 +11307,44 @@ packages:
resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==}
engines: {node: '>= 0.8'}
/unplugin-config@0.0.13(rollup@2.79.1)(vite@4.4.0):
resolution: {integrity: sha512-VZyYzjzhNgXl/K7XrJshHZ0unex0vMH98KFtBckqiGUhxhY0yavQjGsA5sOAQgkuiFEJ+ZwdOdaQPwhMlrEfbg==}
peerDependencies:
'@nuxt/kit': ^3
'@nuxt/schema': ^3
esbuild: '*'
rollup: ^3
vite: '>=3'
webpack: ^4 || ^5
peerDependenciesMeta:
'@nuxt/kit':
optional: true
'@nuxt/schema':
optional: true
esbuild:
optional: true
rollup:
optional: true
vite:
optional: true
webpack:
optional: true
dependencies:
'@kirklin/logger': 0.0.2
rollup: 2.79.1
unplugin: 1.5.0
vite: 4.4.0(@types/node@20.4.0)(less@4.1.3)(sass@1.63.6)
dev: true
/unplugin@1.5.0:
resolution: {integrity: sha512-9ZdRwbh/4gcm1JTOkp9lAkIDrtOyOxgHmY7cjuwI8L/2RTikMcVG25GsZwNAgRuap3iDw2jeq7eoqtAsz5rW3A==}
dependencies:
acorn: 8.10.0
chokidar: 3.5.3
webpack-sources: 3.2.3
webpack-virtual-modules: 0.5.0
dev: true
/unset-value@1.0.0:
resolution: {integrity: sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==}
engines: {node: '>=0.10.0'}
@@ -11790,6 +11835,15 @@ packages:
engines: {node: '>=10.4'}
dev: false
/webpack-sources@3.2.3:
resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==}
engines: {node: '>=10.13.0'}
dev: true
/webpack-virtual-modules@0.5.0:
resolution: {integrity: sha512-kyDivFZ7ZM0BVOUteVbDFhlRt7Ah/CSPwJdi8hBpkK7QLumUqdLtVfm/PX/hkcnrvr0i77fO5+TjZ94Pe+C9iw==}
dev: true
/whatwg-encoding@1.0.5:
resolution: {integrity: sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==}
dependencies: