@wilshop/dashboard 3.5.3 → 3.5.5
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.
|
@@ -48,8 +48,15 @@ export function linguiBabelPlugin() {
|
|
|
48
48
|
// 2. User's extension files get transformed (not in node_modules)
|
|
49
49
|
// 3. Other node_modules packages are left alone
|
|
50
50
|
if (cleanId.includes('node_modules')) {
|
|
51
|
-
const
|
|
52
|
-
|
|
51
|
+
const isDashboard =
|
|
52
|
+
// Check for YOUR custom name
|
|
53
|
+
cleanId.includes('@wilshop/dashboard/src') ||
|
|
54
|
+
// CRITICAL: Keep checking for the original name too!
|
|
55
|
+
// If you use "npm:@wilshop/dashboard" alias, the folder is still named "@vendure"
|
|
56
|
+
cleanId.includes('@vendure/dashboard/src') ||
|
|
57
|
+
// Check for local monorepo path
|
|
58
|
+
cleanId.includes('packages/dashboard/src');
|
|
59
|
+
if (!isDashboard) {
|
|
53
60
|
return null;
|
|
54
61
|
}
|
|
55
62
|
}
|