You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
actions: (data)=>[{type: "modify",pattern: `} from "./${data.importName}";`,path: "src/index.ts",template: ' {{methodName}},\n} from "./{{ importName }}";',},]
What I'm proposing is that this should be possible to do without having to turn the "actions" array into a function that returns an array. Above it's done purely to create my own dynamic template for the pattern property because pattern is not transformed using Handlebars, so I need to do it manually using data.methodName
Alternatively, you can close this issue and tell me to reorganize my imports in such a way where this magic isn't necessary :P
The text was updated successfully, but these errors were encountered:
sethidden
changed the title
Build type: "modify"'s pattern property should be built as a Handlebars template
Action type: "modify"'s pattern property should be built as a Handlebars template
Nov 23, 2023
Say you want to turn:
into
To do that, you'll need to do
What I'm proposing is that this should be possible to do without having to turn the "actions" array into a function that returns an array. Above it's done purely to create my own dynamic template for the
pattern
property becausepattern
is not transformed using Handlebars, so I need to do it manually usingdata.methodName
Alternatively, you can close this issue and tell me to reorganize my imports in such a way where this magic isn't necessary :P
The text was updated successfully, but these errors were encountered: