mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
feat: support webpack profiling (#9804)
Co-authored-by: Martin Guillon <martin.guillon@akylas.fr>
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user