mirror of
https://github.com/grafana/grafana.git
synced 2025-09-19 15:22:53 +08:00
Build: Force same version of @emotion/react via webpack config (#66822)
This commit is contained in:
@ -22,6 +22,9 @@ module.exports = {
|
|||||||
// some of data source plugins use global Prism object to add the language definition
|
// 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
|
// we want to have same Prism object in core and in grafana/ui
|
||||||
prismjs: require.resolve('prismjs'),
|
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')],
|
modules: ['node_modules', path.resolve('public')],
|
||||||
fallback: {
|
fallback: {
|
||||||
|
Reference in New Issue
Block a user