@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 CHANGED
@@ -736,17 +736,19 @@ function directivePlugin({
736
736
  if (vuePluginOptions == null) {
737
737
  vuePluginOptions = getVuePluginOptions(vuePlugin);
738
738
  }
739
- analyzeIdentifiers(
740
- getDescriptor(filename, code, vuePluginOptions),
741
- vuePluginOptions,
742
- translationIdentifiers
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
- analyzeIdentifiers(
728
- getDescriptor(filename, code, vuePluginOptions),
729
- vuePluginOptions,
730
- translationIdentifiers
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@intlify/unplugin-vue-i18n",
3
3
  "type": "module",
4
- "version": "6.0.0",
4
+ "version": "6.0.2",
5
5
  "description": "unplugin for Vue I18n",
6
6
  "author": {
7
7
  "name": "kazuya kawaguchi",