mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 23:12:03 +08:00
update source template stories
This commit is contained in:
parent
e54c8432a7
commit
b36ad4d239
@ -36,8 +36,10 @@ export const Custom = {
|
||||
export const Transform = {
|
||||
parameters: {
|
||||
docs: {
|
||||
transformSource(src: string) {
|
||||
return `// We transformed this!\nconst example = (\n${src}\n);`;
|
||||
source: {
|
||||
transform(src: string) {
|
||||
return `// We transformed this!\nconst example = (\n${src}\n);`;
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user