feat: support webpack profiling (#9804)

Co-authored-by: Martin Guillon <martin.guillon@akylas.fr>
This commit is contained in:
Igor Randjelovic
2022-03-03 10:22:28 +01:00
committed by GitHub
parent 151d6e8c85
commit af4b7e3b33
4 changed files with 41 additions and 1 deletions

View File

@ -222,6 +222,11 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
});
});
// enable profiling with --env.profile
config.when(env.profile, (config) => {
config.profile(true);
});
// worker-loader should be declared before ts-loader
config.module
.rule('workers')