Skip to content

Commit

Permalink
fix(console,examples): fix console build by ignoring warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tadayosi committed Jun 12, 2024
1 parent 8072217 commit be45a94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion console/craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ module.exports = {
webpackConfig.output.publicPath = 'auto'

// For suppressing sourcemap warnings coming from some dependencies
webpackConfig.ignoreWarnings = [/Failed to parse source map/]
webpackConfig.ignoreWarnings = [
/Failed to parse source map/,
/Critical dependency: the request of a dependency is an expression/,
]

webpackConfig.resolve = {
...webpackConfig.resolve,
Expand Down
5 changes: 4 additions & 1 deletion examples/sample-plugin/craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ module.exports = {
}

// For suppressing sourcemap warnings from dependencies
webpackConfig.ignoreWarnings = [/Failed to parse source map/]
webpackConfig.ignoreWarnings = [
/Failed to parse source map/,
/Critical dependency: the request of a dependency is an expression/,
]

// MiniCssExtractPlugin - Ignore order as otherwise conflicting order warning is raised
const miniCssExtractPlugin = webpackConfig.plugins.find(p => p.constructor.name === 'MiniCssExtractPlugin')
Expand Down

0 comments on commit be45a94

Please sign in to comment.