chore: set webpack name from test suite for caching (#2027)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import webpack, { Configuration } from 'webpack';
|
||||
import md5 from 'md5';
|
||||
import { SanitizedConfig } from '../config/types';
|
||||
import getBaseConfig from './getBaseConfig';
|
||||
|
||||
@@ -9,6 +10,8 @@ export default (payloadConfig: SanitizedConfig): Configuration => {
|
||||
...baseConfig,
|
||||
cache: {
|
||||
type: 'filesystem',
|
||||
// version cache when there are changes to aliases
|
||||
version: md5(Object.entries(baseConfig.resolve.alias).join()),
|
||||
buildDependencies: {
|
||||
config: [__filename],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user