Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Dec 26, 2024
1 parent 0c285d9 commit 9a08cfa
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@
"postinstall": "vscode-ext-gen --scope vue"
},
"devDependencies": {
"@kermanx/tree-shaker": "https://pkg.pr.new/KermanX/tree-shaker/@kermanx/tree-shaker@37d3166",
"@kermanx/tree-shaker": "https://pkg.pr.new/KermanX/tree-shaker/@kermanx/tree-shaker@93d12c6",
"@types/semver": "^7.5.3",
"@types/vscode": "^1.82.0",
"@volar/vscode": "~2.4.11",
Expand Down
6 changes: 3 additions & 3 deletions extensions/vscode/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ esbuild.context({
if (!minify) {
return;
}
build.onLoad({ filter: /\.js/ }, ({ path }) => {
build.onLoad({ filter: /\.js$/ }, ({ path }) => {
path = path.replace(/\\/g, '/');
const soruce = fs.readFileSync(path, 'utf-8');
const { output, diagnostics } = treeShake(soruce, 'recommended', false);
const source = fs.readFileSync(path, 'utf-8');
const { output, diagnostics } = treeShake(source, 'recommended', false);
if (!diagnostics.length) {
return {
contents: output,
Expand Down
42 changes: 21 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9a08cfa

Please sign in to comment.