GitShow/antfu/vite-plugin-package-config
antfu

vite-plugin-package-config

Extend Vite config from your package.json `vite` field.

by antfu
Star on GitHubForknpm

TypeScript

42 stars3 forks3 contributorsQuiet · 4y agoSince 2021v0.1.1MIT

Meet the team

See all 3 on GitHub →
antfu
antfu9 contributions
zheeeng
zheeeng2 contributions
joshwooding
joshwooding1 contribution

Languages

View on GitHub →
TypeScript80%
HTML11.9%
CSS8.1%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template✓PR Template

Recent PRs & issues

Quiet · 1 discussion · Last activity 4y ago
See all on GitHub →
qiyingcong
TypeError: PkgConfig is not a functionOpenIssue

Describe the bug 安装完 'vite-plugin-optimize-persist’ 'vite-plugin-package-config'这两个插件,启动项目报错如下 PS C:\Users\97364\Desktop\ProjectCode\gzgd-admin> npm run dev vite-project@0.0.0 dev C:\Users\97364\Desktop\ProjectCode\gzgd-admin vite --host { 20:12:55 default: [Getter] } PkgConfig ERROR failed to load config from C:\Users\97364\Desktop\ProjectCode\gzgd-admin\vite.config.ts 20:12:55 ERROR error when starting dev server: 20:12:55 TypeError: PkgConfig is not a function at file:///C:/Users/97364/Desktop/ProjectCode/gzgd-admin/vite.config.ts.timestamp-1679487174009.mjs:46:5 at ModuleJob.run (internal/modules/esm/module_job.js:183:25) at async Loader.import (internal/modules/esm/loader.js:178:24) at async loadConfigFromBundledFile (file:///C:/Users/97364/Desktop/ProjectCode/gzgd-admin/node_modules/vite/dist/node/chunks/dep-ca21228b.js:62337:21) at async loadConfigFromFile (file:///C:/Users/97364/Desktop/ProjectCode/gzgd-admin/node_modules/vite/dist/node/chunks/dep-ca21228b.js:62222:28) at async resolveConfig (file:///C:/Users/97364/Desktop/ProjectCode/gzgd-admin/node_modules/vite/dist/node/chunks/dep-ca21228b.js:61843:28) at async createServer (file:///C:/Users/97364/Desktop/ProjectCode/gzgd-admin/node_modules/vite/dist/node/chunks/dep-ca21228b.js:61153:20) at async CAC. (file:///C:/Users/97364/Desktop/ProjectCode/gzgd-admin/node_modules/vite/dist/node/cli.js:734:24) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! vite-project@0.0.0 dev: npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vite-project@0.0.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\97364\AppData\Roaming\npm-cache\_logs\2023-03-22T12_12_55_518Z-debug.log PS C:\Users\97364\Desktop\ProjectCode\gzgd-admin> Reproduction TypeError: PkgConfig is not a function System Info Used Package Manager npm Validations [X] Follow our Code of Conduct [X] Read the Contributing Guide. [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [X] The provided reproduction is a minimal reproducible of the bug.

qiyingcong · 3y ago

Recent fixes

View closed PRs →
mingshanjianke
Use vite-plugin-package-config and vite-plugin-optimize-persist is not workClosedIssue

I install and use vite-plugin-package-config and vite-plugin-optimize-persist, but there is nothing is added in package.Thanks!

mingshanjianke · 4y ago
zheeeng
feat: export more accurate plugin signatureMergedPR
zheeeng · 4y ago
zheeeng
chore: nicer debug infoMergedPR
zheeeng · 4y ago
Structured data for AI agents

Repository: antfu/vite-plugin-package-config. Description: Extend Vite config from your package.json `vite` field. Stars: 42, Forks: 3. Primary language: TypeScript. Languages: TypeScript (80%), HTML (11.9%), CSS (8.1%). License: MIT. Latest release: v0.1.1 (4y ago). Open PRs: 0, open issues: 1. Last activity: 4y ago. Community health: 85%. Top contributors: antfu, zheeeng, joshwooding.

·@ofershap

Replace github.com with gitshow.dev