NoBuildOnly
noBuildOnly
Creates a function from the given function that runs only outside of build mode.
Example
const noBuildOnlyFn = noBuildOnly(() => {
console.log('This function runs only outside of build mode');
});
noBuildOnlyFn(); // This will log the message only outside of build mode
Signature
function noBuildOnly<T extends (...args: any[]) => any>(fn: T): T
Parameters
fn
parameter
T