Esempio n. 1
0
        private static string ConstructArguments(Config config)
        {
            string arguments = "";

            var options = BabelOptions.FromConfig(config);

            if (options.SourceMap || config.SourceMap)
            {
                arguments += " --source-maps inline";
            }

            return(arguments);
        }
Esempio n. 2
0
        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);
        }