Webpack: Allow watching workspaces (#81569)

* build(webpack): remove symlinks:false to enable watching packages with yarn start

* build(webpack): add resolve node_modules for enterprise to resolve packages

* add comment

---------

Co-authored-by: joshhunt <josh@trtr.co>
This commit is contained in:
Jack Westbrook 2024-01-30 16:59:18 +01:00 committed by GitHub
parent b84dde7b4a
commit 6d582858f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,16 @@ module.exports = {
'@locker/near-membrane-dom/custom-devtools-formatter.js'
),
},
modules: ['node_modules', path.resolve('public')],
modules: [
// default value
'node_modules',
// required for grafana enterprise resolution
path.resolve('node_modules'),
// required to for 'bare' imports (like 'app/core/utils' etc)
path.resolve('public'),
],
fallback: {
buffer: false,
fs: false,
@ -42,7 +51,6 @@ module.exports = {
https: false,
string_decoder: false,
},
symlinks: false,
},
ignoreWarnings: [/export .* was not found in/],
stats: {