loadlazychunks without dev

This commit is contained in:
thororen1234 2024-07-25 21:54:59 -04:00
parent cdba643226
commit 1905ea04fb
3 changed files with 25 additions and 27 deletions

View file

@ -83,7 +83,7 @@ function makeShortcuts() {
wpsearch: search,
wpex: extract,
wpexs: (code: string) => extract(findModuleId(code)!),
loadLazyChunks: IS_DEV ? loadLazyChunks : () => { throw new Error("loadLazyChunks is dev only."); },
loadLazyChunks: loadLazyChunks,
find,
findAll: findAll,
findByProps,