@intlify/unplugin-vue-i18n 5.3.1 → 6.0.1

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,11 +736,13 @@ 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
+ }
744
746
  }
745
747
  }
746
748
  return {
package/lib/index.mjs CHANGED
@@ -724,11 +724,13 @@ 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
+ }
732
734
  }
733
735
  }
734
736
  return {
package/lib/vite.d.cts CHANGED
@@ -3,4 +3,4 @@ import { PluginOptions } from './types.cjs';
3
3
 
4
4
  declare const vite: UnpluginInstance<PluginOptions | undefined, boolean>['vite'];
5
5
 
6
- export { vite as default };
6
+ export = vite;
package/lib/vite.d.ts CHANGED
@@ -3,4 +3,4 @@ import { PluginOptions } from './types.js';
3
3
 
4
4
  declare const vite: UnpluginInstance<PluginOptions | undefined, boolean>['vite'];
5
5
 
6
- export { vite as default };
6
+ export = vite;
package/lib/webpack.d.cts CHANGED
@@ -3,4 +3,4 @@ import { PluginOptions } from './types.cjs';
3
3
 
4
4
  declare const webpack: UnpluginInstance<PluginOptions | undefined, boolean>['webpack'];
5
5
 
6
- export { webpack as default };
6
+ export = webpack;
package/lib/webpack.d.ts CHANGED
@@ -3,4 +3,4 @@ import { PluginOptions } from './types.js';
3
3
 
4
4
  declare const webpack: UnpluginInstance<PluginOptions | undefined, boolean>['webpack'];
5
5
 
6
- export { webpack as default };
6
+ export = webpack;
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@intlify/unplugin-vue-i18n",
3
- "version": "5.3.1",
3
+ "type": "module",
4
+ "version": "6.0.1",
4
5
  "description": "unplugin for Vue I18n",
5
6
  "author": {
6
7
  "name": "kazuya kawaguchi",
@@ -24,7 +25,7 @@
24
25
  },
25
26
  "dependencies": {
26
27
  "@eslint-community/eslint-utils": "^4.4.0",
27
- "@intlify/bundle-utils": "^9.0.0",
28
+ "@intlify/bundle-utils": "^10.0.0",
28
29
  "@intlify/shared": "latest",
29
30
  "@intlify/vue-i18n-extensions": "^7.0.0",
30
31
  "@rollup/pluginutils": "^5.1.0",
@@ -41,7 +42,8 @@
41
42
  "vue": "^3.4"
42
43
  },
43
44
  "devDependencies": {
44
- "unbuild": "^2.0.0"
45
+ "unbuild": "^2.0.0",
46
+ "@types/node": "^20.14.8"
45
47
  },
46
48
  "engines": {
47
49
  "node": ">= 18"
@@ -67,22 +69,24 @@
67
69
  "types": "./index.d.ts",
68
70
  "exports": {
69
71
  ".": {
70
- "types": "./index.d.ts",
71
- "require": "./lib/index.cjs",
72
- "import": "./lib/index.mjs"
72
+ "import": "./lib/index.mjs",
73
+ "require": "./lib/index.cjs"
73
74
  },
74
75
  "./vite": {
75
- "types": "./vite.d.ts",
76
- "require": "./lib/vite.cjs",
77
- "import": "./lib/vite.mjs"
76
+ "import": "./lib/vite.mjs",
77
+ "require": "./lib/vite.cjs"
78
78
  },
79
79
  "./webpack": {
80
- "types": "./webpack.d.ts",
81
- "require": "./lib/webpack.cjs",
82
- "import": "./lib/webpack.mjs"
80
+ "import": "./lib/webpack.mjs",
81
+ "require": "./lib/webpack.cjs"
83
82
  },
84
83
  "./types": {
85
- "types": "./types.d.ts"
84
+ "import": {
85
+ "types": "./lib/types.d.mts"
86
+ },
87
+ "require": {
88
+ "types": "./lib/types.d.cts"
89
+ }
86
90
  },
87
91
  "./messages": {
88
92
  "types": "./messages.d.ts"
package/lib/types.cjs DELETED
@@ -1,2 +0,0 @@
1
- 'use strict';
2
-
package/lib/types.mjs DELETED
@@ -1 +0,0 @@
1
-