We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b115bd9 commit d727cd9Copy full SHA for d727cd9
playground/vite.config.ts
@@ -17,11 +17,11 @@ const config = defineConfig({
17
name: 'customBlock',
18
transform(code, id) {
19
if (/type=custom/i.test(id)) {
20
- const transformedAssginment = code
+ const transformedAssignment = code
21
.trim()
22
.replace(/export default/, 'const __customBlock =')
23
return {
24
- code: `${transformedAssginment}
+ code: `${transformedAssignment}
25
export default function (Comp) {
26
if (!Comp.__customBlock) {
27
Comp.__customBlock = {};
0 commit comments