Webpack: Fix webpack for enterprise (#22863)

This commit is contained in:
Dominik Prokop 2020-03-18 11:18:48 +01:00 committed by GitHub
parent 0a2dda35fc
commit 6070f749c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,12 @@ module.exports = {
// this alias maps that dependency to core-js@t3
'core-js/library/fn': 'core-js/stable',
},
modules: [path.resolve('public'), 'node_modules'],
modules: [
'node_modules',
path.resolve('public'),
// we need full path to root node_modules for grafana-enterprise symlink to work
path.resolve('node_modules'),
],
},
stats: {
children: false,