Skip to content

Commit d727cd9

Browse files
author
那里好脏不可以
authored
chore(playground/config): fix a typo in a variable name (#24)
1 parent b115bd9 commit d727cd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playground/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ const config = defineConfig({
1717
name: 'customBlock',
1818
transform(code, id) {
1919
if (/type=custom/i.test(id)) {
20-
const transformedAssginment = code
20+
const transformedAssignment = code
2121
.trim()
2222
.replace(/export default/, 'const __customBlock =')
2323
return {
24-
code: `${transformedAssginment}
24+
code: `${transformedAssignment}
2525
export default function (Comp) {
2626
if (!Comp.__customBlock) {
2727
Comp.__customBlock = {};

0 commit comments

Comments
 (0)