webpack/config/development.ts
export default {
cache: {
buildDependencies: {
config: [__filename],
},
name: "development",
type: "filesystem" as const,
},
};
webpack/config/production.ts
export default {
cache: {
buildDependencies: {
config: [__filename],
},
name: "production",
type: "filesystem" as const,
},
};
TypeScript configuration language in ESM.
Allows type-checking of webpack configuration.
Consistent with the rest of the codebase.