diff --git a/common/changes/@microsoft/rush/fix-rush-sdk-bundling_2024-08-08-21-07.json b/common/changes/@microsoft/rush/fix-rush-sdk-bundling_2024-08-08-21-07.json new file mode 100644 index 00000000000..639dc4fdd9c --- /dev/null +++ b/common/changes/@microsoft/rush/fix-rush-sdk-bundling_2024-08-08-21-07.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@microsoft/rush", + "comment": "Fix an issue where rush-sdk can't be bundled by a consuming package.", + "type": "none" + } + ], + "packageName": "@microsoft/rush" +} \ No newline at end of file diff --git a/common/config/rush/version-policies.json b/common/config/rush/version-policies.json index b00eab2e038..679cad60a87 100644 --- a/common/config/rush/version-policies.json +++ b/common/config/rush/version-policies.json @@ -103,7 +103,7 @@ "policyName": "rush", "definitionName": "lockStepVersion", "version": "5.131.0", - "nextBump": "minor", + "nextBump": "patch", "mainProject": "@microsoft/rush" } ] diff --git a/libraries/rush-sdk/.npmignore b/libraries/rush-sdk/.npmignore index 7b312fd6c8b..6d66e80b784 100644 --- a/libraries/rush-sdk/.npmignore +++ b/libraries/rush-sdk/.npmignore @@ -30,5 +30,5 @@ # --------------------------------------------------------------------------- # DO NOT MODIFY ABOVE THIS LINE! Add any project-specific overrides below. # --------------------------------------------------------------------------- -/lib-shim/generate-stubs* - +/lib-commonjs/** +/lib-esnext/** diff --git a/libraries/rush-sdk/webpack.config.js b/libraries/rush-sdk/webpack.config.js index 9f724d7365c..b410226d1c7 100644 --- a/libraries/rush-sdk/webpack.config.js +++ b/libraries/rush-sdk/webpack.config.js @@ -1,7 +1,6 @@ /* eslint-env es6 */ 'use strict'; -const webpack = require('webpack'); const { PackageJsonLookup } = require('@rushstack/node-core-library'); const { PreserveDynamicRequireWebpackPlugin } = require('@rushstack/webpack-preserve-dynamic-require-plugin'); @@ -54,18 +53,6 @@ module.exports = () => { callback(); } } - ], - optimization: { - splitChunks: { - chunks: 'all', - minChunks: 1, - cacheGroups: { - commons: { - name: 'commons', - chunks: 'initial' - } - } - } - } + ] }; };