module.exports = function systemConf(options) {
  const conf = {
    packages: {
      src: {
        defaultExtension: 'js'
      }
    }
  };

  if (options.js !== 'typescript') {
    // https://github.com/systemjs/plugin-babel
    conf.transpiler = 'plugin-babel';
    if (options.framework === 'angular2') {
      conf.babelOptions = {
        plugins: [
          'babel-plugin-transform-es2015-typeof-symbol',
          'babel-plugin-angular2-annotations',
          'babel-plugin-transform-decorators-legacy',
          'babel-plugin-transform-class-properties',
          'babel-plugin-transform-flow-strip-types'
        ]
      };
    } else if (options.framework === 'react') {
      conf.babelOptions = {
        presets: ['babel-preset-react']
      };
    }
  }

  if (options.js === 'typescript') {
    conf.transpiler = 'typescript';
    conf.typescriptOptions = {
      sourceMap: true,
      emitDecoratorMetadata: true,
      experimentalDecorators: true,
      removeComments: false,
      noImplicitAny: false
    };
    conf.packages = {
      src: {defaultExtension: 'ts'},
      typings: {defaultExtension: 'ts'}
    };

    if (options.framework === 'react') {
      // https://github.com/Microsoft/TypeScript/issues/5918
      conf.typescriptOptions.jsx = 2;
      conf.packages.src.defaultExtension = 'tsx';
      conf.packages.src.main = 'index';
    }

    if (options.framework === 'angular1') {
      conf.packages['.tmp'] = {defaultExtension: 'ts'};
    }
  }

  return conf;
};

@@ -142,640 +142,8 @@
 %7D;%0A%0A
-  if (options.js !== 'typescript') %7B%0A    // https://github.com/systemjs/plugin-babel%0A    conf.transpiler = 'plugin-babel';%0A    if (options.framework === 'angular2') %7B%0A      conf.babelOptions = %7B%0A        plugins: %5B%0A          'babel-plugin-transform-es2015-typeof-symbol',%0A          'babel-plugin-angular2-annotations',%0A          'babel-plugin-transform-decorators-legacy',%0A          'babel-plugin-transform-class-properties',%0A          'babel-plugin-transform-flow-strip-types'%0A        %5D%0A      %7D;%0A    %7D else if (options.framework === 'react') %7B%0A      conf.babelOptions = %7B%0A        presets: %5B'babel-preset-react'%5D%0A      %7D;%0A    %7D%0A  %7D%0A%0A
   if
@@ -852,16 +852,617 @@
    %7D%0A  %7D
+ else %7B%0A    // https://github.com/systemjs/plugin-babel%0A    conf.transpiler = 'plugin-babel';%0A    if (options.framework === 'angular2') %7B%0A      conf.babelOptions = %7B%0A        plugins: %5B%0A          'babel-plugin-transform-es2015-typeof-symbol',%0A          'babel-plugin-angular2-annotations',%0A          'babel-plugin-transform-decorators-legacy',%0A          'babel-plugin-transform-class-properties',%0A          'babel-plugin-transform-flow-strip-types'%0A        %5D%0A      %7D;%0A    %7D else if (options.framework === 'react') %7B%0A      conf.babelOptions = %7B%0A        presets: %5B'babel-preset-react'%5D%0A      %7D;%0A    %7D%0A  %7D
 %0A%0A  retu

Use if/else instead of 2 different if