@intlify/unplugin-vue-i18n 6.0.0 → 6.0.2
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.
- package/lib/index.cjs +11 -9
- package/lib/index.mjs +11 -9
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -736,17 +736,19 @@ function directivePlugin({
|
|
|
736
736
|
if (vuePluginOptions == null) {
|
|
737
737
|
vuePluginOptions = getVuePluginOptions(vuePlugin);
|
|
738
738
|
}
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
739
|
+
if (vuePluginOptions?.compiler) {
|
|
740
|
+
analyzeIdentifiers(
|
|
741
|
+
getDescriptor(filename, code, vuePluginOptions),
|
|
742
|
+
vuePluginOptions,
|
|
743
|
+
translationIdentifiers
|
|
744
|
+
);
|
|
745
|
+
return {
|
|
746
|
+
code,
|
|
747
|
+
map: { version: 3, mappings: "", sources: [] }
|
|
748
|
+
};
|
|
749
|
+
}
|
|
744
750
|
}
|
|
745
751
|
}
|
|
746
|
-
return {
|
|
747
|
-
code,
|
|
748
|
-
map: { version: 3, mappings: "", sources: [] }
|
|
749
|
-
};
|
|
750
752
|
}
|
|
751
753
|
};
|
|
752
754
|
}
|
package/lib/index.mjs
CHANGED
|
@@ -724,17 +724,19 @@ function directivePlugin({
|
|
|
724
724
|
if (vuePluginOptions == null) {
|
|
725
725
|
vuePluginOptions = getVuePluginOptions(vuePlugin);
|
|
726
726
|
}
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
727
|
+
if (vuePluginOptions?.compiler) {
|
|
728
|
+
analyzeIdentifiers(
|
|
729
|
+
getDescriptor(filename, code, vuePluginOptions),
|
|
730
|
+
vuePluginOptions,
|
|
731
|
+
translationIdentifiers
|
|
732
|
+
);
|
|
733
|
+
return {
|
|
734
|
+
code,
|
|
735
|
+
map: { version: 3, mappings: "", sources: [] }
|
|
736
|
+
};
|
|
737
|
+
}
|
|
732
738
|
}
|
|
733
739
|
}
|
|
734
|
-
return {
|
|
735
|
-
code,
|
|
736
|
-
map: { version: 3, mappings: "", sources: [] }
|
|
737
|
-
};
|
|
738
740
|
}
|
|
739
741
|
};
|
|
740
742
|
}
|