mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
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:
co-authored by
joshhunt
parent
b84dde7b4a
commit
6d582858f7
@@ -33,7 +33,16 @@ module.exports = {
|
|||||||
'@locker/near-membrane-dom/custom-devtools-formatter.js'
|
'@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: {
|
fallback: {
|
||||||
buffer: false,
|
buffer: false,
|
||||||
fs: false,
|
fs: false,
|
||||||
@@ -42,7 +51,6 @@ module.exports = {
|
|||||||
https: false,
|
https: false,
|
||||||
string_decoder: false,
|
string_decoder: false,
|
||||||
},
|
},
|
||||||
symlinks: false,
|
|
||||||
},
|
},
|
||||||
ignoreWarnings: [/export .* was not found in/],
|
ignoreWarnings: [/export .* was not found in/],
|
||||||
stats: {
|
stats: {
|
||||||
|
|||||||
Reference in New Issue
Block a user