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 9f88109 commit 7113409Copy full SHA for 7113409
packages/cli/src/main.ts
@@ -47,7 +47,12 @@ export default async function main(paths: string[], flags: Flags) {
47
48
const config = await fetchConfigAtPath(configFilePath);
49
const answers = await inquirer.prompt([getTransformPrompt(config)]);
50
- transforms.push(answers.transform);
+
51
+ if (config.transforms && config.transforms[answers.transform]) {
52
+ transforms.push(config.transforms[answers.transform]);
53
+ } else if (config.presets && config.presets[answers.transform]) {
54
+ transforms.push(config.presets[answers.transform]);
55
+ }
56
}
57
58
if (paths.length === 0) {
0 commit comments