private static string ConstructArguments(Config config) { string arguments = ""; var options = BabelOptions.FromConfig(config); if (options.SourceMap || config.SourceMap) { arguments += " --source-maps inline"; } return(arguments); }
private static string ConstructArguments(Config config) { //string relative = FileHelpers.MakeRelative(config.GetAbsoluteOutputFile().FullName, config.GetAbsoluteInputFile().FullName); string arguments = $"--presets react"; var options = BabelOptions.FromConfig(config); if (options.SourceMap || config.SourceMap) { arguments += " --source-maps inline"; } return(arguments); }