nsgm-cli 2.1.40 → 2.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,7 +24,7 @@ function loadProjectDataLoaders() {
|
|
|
24
24
|
let loadedCount = 0;
|
|
25
25
|
files.forEach((file) => {
|
|
26
26
|
// 只加载 JavaScript dataloader 文件:*-dataloader.js
|
|
27
|
-
const match = file.match(/^([a-z_]+)
|
|
27
|
+
const match = file.match(/^([a-z_-]+)-dataloader\.js$/i);
|
|
28
28
|
if (match) {
|
|
29
29
|
const moduleName = match[1]; // 提取模块名,如 'product'
|
|
30
30
|
const filePath = (0, path_1.join)(projectDataLoadersPath, file);
|