Skip to content

Commit

Permalink
Document webpack-config-single-spa's new outputSystemJS opt (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning authored Oct 2, 2024
1 parent 3bd8d6e commit 23b6740
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion versioned_docs/version-6.x/shared-webpack-configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ These packages are housed within the [create-single-spa repository](https://gith

[Github project](https://github.com/single-spa/create-single-spa/tree/master/packages/webpack-config-single-spa)

A shareable, customizable webpack config that is used for single-spa modules.
A shareable, customizable webpack config that is used for single-spa modules. As of webpack-config-single-spa@6, native ES modules are outputted, by default.

### Installation

Expand Down Expand Up @@ -42,6 +42,12 @@ module.exports = (webpackConfigEnv, argv) => {
// treated as webpack externals or not. Defaults to true
orgPackagesAsExternal: true,

// optional, defaults to false
// This changes the webpack output.libraryTarget so that the output bundle is in System.register() format
// Older versions of webpack-config-single-spa outputted System.register() format by default, so this
// option exists for backwards compatibility for organizations who haven't yet upgraded to SystemJS
outputSystemJS: false,

// optional, defaults to 1
// This is the rootDirectoryLevel that is passed to https://github.com/joeldenning/systemjs-webpack-interop
rootDirectoryLevel: 1,
Expand Down

0 comments on commit 23b6740

Please sign in to comment.