text: const singleSpaAngularWebpack = require('single-spa-angular/lib/webpack').default;
  const SystemJSPublicPathWebpackPlugin = require('systemjs-webpack-interop/SystemJSPublicPathWebpackPlugin');
  
  module.exports = (config, options) => {
    const singleSpaWebpackConfig = singleSpaAngularWebpack(config, options);
  
    singleSpaWebpackConfig.plugins.push(new SystemJSPublicPathWebpackPlugin({
      // ONLY NEEDED FOR WEBPACK 1-4. Not necessary for webpack@5
      systemjsModuleName: '@angular-microfrontends/play'
    }));
  
    singleSpaWebpackConfig.externals.push(
      '@angular/common',
      '@angular/core',
      '@angular/platform-browser',
      '@angular/router',
      '@angular-microfrontends/game-core',
      'rxjs',
      'rxjs/operators',
      'single-spa',
    );
  
    // Feel free to modify this webpack config however you'd like to
    return singleSpaWebpackConfig;
  };
  