UNPKG

webpack-config-single-spa-react

Version:

A helper for creating webpack configs for react single-spa applications

17 lines (11 loc) 419 B
const webpackConfigSingleSpa = require("webpack-config-single-spa"); module.exports = webpackConfigSingleSpaReact; function webpackConfigSingleSpaReact(opts) { const webpackConfigEnv = opts.webpackConfigEnv || {}; opts.react = true; const config = webpackConfigSingleSpa(opts); if (!webpackConfigEnv.standalone) { config.externals.push("react", "react-dom", "react-dom/client"); } return config; }