Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Nov 25, 2024
1 parent 595153d commit 361ab96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/vite-plugin-canyon/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-canyon",
"version": "0.0.1-alpha.14",
"version": "0.0.1-alpha.15",
"license": "MIT",
"files": [
"dist/*"
Expand Down
3 changes: 3 additions & 0 deletions plugins/vite-plugin-canyon/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ function resolveFilename(id: string): string {
}

function shouldInstrument(filename: string) {
if (filename.includes('node_modules')) {
return false;
}
return DEFAULT_EXTENSION.some(ext => filename.endsWith(ext));
}

Expand Down

0 comments on commit 361ab96

Please sign in to comment.