File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
src/platform/packages/private/kbn-ui-shared-deps-npm Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -171,10 +171,19 @@ module.exports = (_, argv) => {
171171 hints : false ,
172172 } ,
173173
174- cache : {
175- type : 'filesystem' ,
174+ // the gist of the change, making Webpack listen to `node_modules/@elastic/eui` change
175+ watchOptions : {
176+ ignored : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] (? ! @ e l a s t i c ( $ | [ \\ / ] $ | [ \\ / ] e u i ( [ \\ / ] | $ ) ) ) / ,
176177 } ,
177178
179+ // snapshot: {
180+ // managedPaths: [/^(.+?[\\/]node_modules[\\/])(?!@elastic[\\/]eui)/],
181+ // },
182+
183+ // so far only disabling cache worked but we should re-enable it for better performance
184+ // and make `node_modules/@elastic/eui` work at the same time
185+ cache : false ,
186+
178187 plugins : [
179188 new NodeLibsBrowserPlugin ( ) ,
180189 new CleanWebpackPlugin ( {
@@ -193,6 +202,11 @@ module.exports = (_, argv) => {
193202 path : Path . resolve ( outputPath , '[name]-manifest.json' ) ,
194203 name : '__kbnSharedDeps_npm__' ,
195204 } ) ,
205+ // adds a useful comment at the top of the DLL for debugging
206+ new webpack . BannerPlugin ( {
207+ banner : `/* Build: ${ new Date ( ) . toLocaleString ( ) } */` ,
208+ raw : true ,
209+ } ) ,
196210 ] ,
197211 } ;
198212} ;
You can’t perform that action at this time.
0 commit comments