Skip to content

Commit

Permalink
maint: Upgrade to @patternslib/dev 2.2.0 and adapt module federation …
Browse files Browse the repository at this point in the history
…config.
  • Loading branch information
thet committed Jun 27, 2022
1 parent 0437dae commit 8b5c424
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@patternslib/patternslib": "*"
},
"devDependencies": {
"@patternslib/dev": "^2.0.0"
"@patternslib/dev": "^2.2.0"
},
"scripts": {
"start": "NODE_ENV=development webpack serve --config webpack.config.js",
Expand Down
7 changes: 6 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const mf_config = require("@patternslib/dev/webpack/webpack.mf");
const package_json = require("./package.json");
const path = require("path");
const patternslib_config = require("@patternslib/dev/webpack/webpack.config.js");
const patternslib_package_json = require("@patternslib/patternslib/package.json");

module.exports = async (env, argv) => {
let config = {
Expand All @@ -16,8 +17,12 @@ module.exports = async (env, argv) => {

config.plugins.push(
mf_config({
package_json: package_json,
name: package_json.name,
remote_entry: config.entry["bundle.min"],
dependencies: {
...patternslib_package_json.dependencies,
...package_json.dependencies,
},
})
);

Expand Down

0 comments on commit 8b5c424

Please sign in to comment.