@wilshop/dashboard 3.5.4 → 3.5.6
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.
|
@@ -42,13 +42,13 @@ export function linguiBabelPlugin() {
|
|
|
42
42
|
if (!code.includes('@lingui/') || !code.includes('/macro')) {
|
|
43
43
|
return null;
|
|
44
44
|
}
|
|
45
|
-
// Skip node_modules files EXCEPT for @
|
|
45
|
+
// Skip node_modules files EXCEPT for @vendure/dashboard source
|
|
46
46
|
// This ensures:
|
|
47
47
|
// 1. Dashboard source files get transformed (both in monorepo and external projects)
|
|
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 isVendureDashboard = cleanId.includes('@
|
|
51
|
+
const isVendureDashboard = cleanId.includes('@vendure/dashboard/src') || cleanId.includes('packages/dashboard/src');
|
|
52
52
|
if (!isVendureDashboard) {
|
|
53
53
|
return null;
|
|
54
54
|
}
|