Skip to content

Commit

Permalink
wip: setup basic testing, refactor server api
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 18, 2020
1 parent fe1848c commit 7335861
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,26 @@
],
"scripts": {
"lint": "eslint --ext .ts packages/*/src/**",
"bundle": "esbuild packages/vite/src/node/index.ts packages/vite/src/node/cli.ts --bundle --platform=node --target=node12 --external:fsevents --external:sugarss --external:bufferutil --external:utf-8-validate --outdir=esbuild"
"test": "jest"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.12.1",
"@types/jest": "^26.0.19",
"@types/node": "^14.14.10",
"@typescript-eslint/parser": "^4.9.1",
"enquirer": "^2.3.6",
"eslint": "^7.15.0",
"eslint-plugin-node": "^11.1.0",
"execa": "^5.0.0",
"jest": "^26.6.3",
"lint-staged": "^10.5.3",
"minimist": "^1.2.5",
"npm-run-all": "^4.1.5",
"playwright-chromium": "^1.7.0",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"semver": "^7.3.4",
"ts-jest": "^26.4.4",
"typescript": "^4.1.2",
"yorkie": "^2.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,4 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {

// overwrite for cjs require('...')() usage
module.exports = vuePlugin
vuePlugin.default = vuePlugin
4 changes: 4 additions & 0 deletions packages/plugin-vue/src/utils/descriptorCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ export function getDescriptor(filename: string) {
`This is a @vitejs/plugin-vue internal error, please open an issue.`
)
}

export function setDescriptor(filename: string, entry: SFCDescriptor) {
cache.set(filename, entry)
}

0 comments on commit 7335861

Please sign in to comment.