Skip to content

Commit

Permalink
maint: Adapt to @patternslib/dev module federation changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed Jul 6, 2022
1 parent 5da74f4 commit 730ab0f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
process.traceDeprecation = true;
const package_json = require("./package.json");
const path = require("path");
const package_json = require("./package.json");
const patternslib_package_json = require("@patternslib/patternslib/package.json");
const patternslib_config = require("@patternslib/dev/webpack/webpack.config");
const mf_config = require("@patternslib/dev/webpack/webpack.mf");

Expand All @@ -19,20 +20,22 @@ module.exports = (env, argv) => {

config.plugins.push(
mf_config({
package_json: package_json,
name: "patternslib",
filename: "remote.min.js",
remote_entry: config.entry["bundle.min"],
dependencies: {
...patternslib_package_json.dependencies,
...package_json.dependencies,
},
})
);
config.plugins.push(
mf_config({
name: "bootstrap",
filename: "bootstrap-remote.min.js",
remote_entry: config.entry["bootstrap.min"],
shared: {
bootstrap: {
singleton: true,
requiredVersion: package_json.dependencies["bootstrap"],
},
dependencies: {
bootstrap: package_json.dependencies["bootstrap"],
},
})
);
Expand All @@ -41,11 +44,8 @@ module.exports = (env, argv) => {
name: "jquery",
filename: "jquery-remote.min.js",
remote_entry: config.entry["jquery.min"],
shared: {
jquery: {
singleton: true,
requiredVersion: package_json.dependencies["jquery"],
},
dependencies: {
jquery: package_json.dependencies["jquery"],
},
})
);
Expand Down

0 comments on commit 730ab0f

Please sign in to comment.