Skip to content

Commit

Permalink
fix(eslint): avoid crypto.getRandomValues() not supported. error
Browse files Browse the repository at this point in the history
  • Loading branch information
zcf0508 committed Dec 21, 2023
1 parent ffb6d8a commit 3dffc7f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"ts-node": "^10.9.2",
"tsup": "^7.3.0",
"typescript": "^5.3.3",
"uuid": "^9.0.1",
"vis-network": "^9.1.9",
"vitest": "^0.34.6",
"vue-eslint-parser": "^9.3.2"
Expand Down
3 changes: 1 addition & 2 deletions src/analyze/template.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { v4 as uuid } from 'uuid';
import { compileTemplate, babelParse } from '@vue/compiler-sfc';
import _traverse from '@babel/traverse';
const traverse: typeof _traverse =
Expand All @@ -8,7 +7,7 @@ const traverse: typeof _traverse =
export function analyze(
content: string
) {
const id = uuid();
const id = 'template';
const { code } = compileTemplate({
id: id,
source: content,
Expand Down

0 comments on commit 3dffc7f

Please sign in to comment.