Skip to content

Commit bba84b2

Browse files
fix wrong console method
1 parent fb0e377 commit bba84b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/with-federated-sidecar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const logPrefix = chalk.rgb(165, 232, 217)("[next-mf]");
2525
const log = (...args) => console.log(logPrefix, ...args);
2626
log.error = (...args) => console.error(logPrefix, chalk.red("error"), ...args);
2727
log.warning = (...args) =>
28-
console.warning(logPrefix, chalk.yellow("warning"), ...args);
28+
console.warn(logPrefix, chalk.yellow("warning"), ...args);
2929

3030
const buildClientRemotes = (federationPluginOptions, webpack) => {
3131
const clientRemotes = Object.entries(
@@ -297,6 +297,7 @@ const withModuleFederation =
297297
// take original externals regex
298298
const backupExternals = compilation.options.externals[0];
299299
// if externals is a function (like when you're not running in serverless mode or creating a single build)
300+
console.log(webpackOptions.externals)
300301
if (typeof backupExternals === "function") {
301302
webpackOptions.externals = [
302303
"next",

0 commit comments

Comments
 (0)