Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document webpack-config-single-spa's new outputSystemJS opt #650

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading