Skip to content

Commit

Permalink
make the message a suggestion instead of a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
amsardesai committed May 2, 2024
1 parent 09fa43c commit f9aa295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/dynamic-import-chunkname.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module.exports = {
if (isChunknamePresent && isEagerModePresent) {
context.report({
node,
message: 'dynamic imports should not have both webpackChunkName and webpackMode: "eager"',
message: 'dynamic imports should not have both webpackChunkName and webpackMode: "eager". Consider using webpackMode: "lazy" or removing the webpackChunkName.',
});
}

Expand Down

0 comments on commit f9aa295

Please sign in to comment.