fix(webpack): ignore optional canvas dependency in resemblejs
Skipping node-canvas dependency in resemblejs as it [fails in certain environments](https://github.com/rsmbl/Resemble.js#nodejs). The reference states > If you are using Resemble.js for in-browser analysis only, you can skip the node-canvas dependency.
This commit is contained in:
parent
f24e0f3622
commit
a0aff63dde
|
@ -294,6 +294,10 @@ module.exports = (_env, argv) => {
|
|||
plugins: [
|
||||
...config.plugins,
|
||||
...getBundleAnalyzerPlugin(analyzeBundle, 'app'),
|
||||
new webpack.IgnorePlugin({
|
||||
resourceRegExp: /^canvas$/,
|
||||
contextRegExp: /resemblejs$/
|
||||
}),
|
||||
new webpack.IgnorePlugin({
|
||||
resourceRegExp: /^\.\/locale$/,
|
||||
contextRegExp: /moment$/
|
||||
|
|
Loading…
Reference in New Issue