+3
packages/core-extensions/src/spacepack/webpackModules/spacepack.ts
+3
packages/core-extensions/src/spacepack/webpackModules/spacepack.ts
···
184
184
},
185
185
186
186
lazyLoad: (find: string | RegExp | (string | RegExp)[], chunk: RegExp, module: RegExp) => {
187
+
chunk = processFind(chunk);
188
+
module = processFind(module);
189
+
187
190
const mod = Array.isArray(find) ? spacepack.findByCode(...find) : spacepack.findByCode(find);
188
191
if (mod.length < 1) {
189
192
logger.warn("lazyLoad: Module find failed", find, chunk, module, new Error().stack!.substring(5));