Plugins: Sandbox frontend plugins DOM access. (#69246)

This commit is contained in:
Esteban Beltran
2023-06-21 14:49:22 +02:00
committed by GitHub
parent 8a13ee3cd4
commit ed5a697825
13 changed files with 676 additions and 52 deletions

View File

@ -25,6 +25,13 @@ module.exports = {
// 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'),
// due to our webpack configuration not understanding package.json `exports`
// correctly we must alias this package to the correct file
// the alternative to this alias is to copy-paste the file into our
// source code and miss out in updates
'@locker/near-membrane-dom/custom-devtools-formatter': require.resolve(
'@locker/near-membrane-dom/custom-devtools-formatter.js'
),
},
modules: ['node_modules', path.resolve('public')],
fallback: {