Build: Force same version of @emotion/react via webpack config (#66822)

This commit is contained in:
Esteban Beltran 2023-04-24 17:13:52 +02:00 committed by GitHub
parent 0b2f7db224
commit 362936b002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,9 @@ module.exports = {
// some of data source plugins use global Prism object to add the language definition
// we want to have same Prism object in core and in grafana/ui
prismjs: require.resolve('prismjs'),
// some sub-dependencies use a different version of @emotion/react and generate warnings
// in the browser about @emotion/react loaded twice. We want to only load it once
'@emotion/react': require.resolve('@emotion/react'),
},
modules: ['node_modules', path.resolve('public')],
fallback: {