@intlify/unplugin-vue-i18n 5.0.0-beta.0 → 5.0.0-beta.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/README.md +17 -2
- package/lib/index.cjs +525 -163
- package/lib/index.mjs +520 -163
- package/lib/types.d.cts +1 -1
- package/lib/types.d.mts +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/vite.cjs +11 -5
- package/lib/vite.mjs +11 -5
- package/lib/webpack.cjs +11 -5
- package/lib/webpack.mjs +11 -5
- package/package.json +11 -17
package/lib/types.d.cts
CHANGED
|
@@ -11,9 +11,9 @@ interface PluginOptions {
|
|
|
11
11
|
forceStringify?: boolean;
|
|
12
12
|
defaultSFCLang?: SFCLangFormat;
|
|
13
13
|
globalSFCScope?: boolean;
|
|
14
|
-
useVueI18nImportName?: boolean;
|
|
15
14
|
strictMessage?: boolean;
|
|
16
15
|
escapeHtml?: boolean;
|
|
16
|
+
optimizeTranslationDirective?: boolean | string | string[];
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export type { PluginOptions, SFCLangFormat };
|
package/lib/types.d.mts
CHANGED
|
@@ -11,9 +11,9 @@ interface PluginOptions {
|
|
|
11
11
|
forceStringify?: boolean;
|
|
12
12
|
defaultSFCLang?: SFCLangFormat;
|
|
13
13
|
globalSFCScope?: boolean;
|
|
14
|
-
useVueI18nImportName?: boolean;
|
|
15
14
|
strictMessage?: boolean;
|
|
16
15
|
escapeHtml?: boolean;
|
|
16
|
+
optimizeTranslationDirective?: boolean | string | string[];
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export type { PluginOptions, SFCLangFormat };
|
package/lib/types.d.ts
CHANGED
|
@@ -11,9 +11,9 @@ interface PluginOptions {
|
|
|
11
11
|
forceStringify?: boolean;
|
|
12
12
|
defaultSFCLang?: SFCLangFormat;
|
|
13
13
|
globalSFCScope?: boolean;
|
|
14
|
-
useVueI18nImportName?: boolean;
|
|
15
14
|
strictMessage?: boolean;
|
|
16
15
|
escapeHtml?: boolean;
|
|
16
|
+
optimizeTranslationDirective?: boolean | string | string[];
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export type { PluginOptions, SFCLangFormat };
|
package/lib/vite.cjs
CHANGED
|
@@ -2,15 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index.cjs');
|
|
4
4
|
require('unplugin');
|
|
5
|
-
require('pathe');
|
|
6
5
|
require('debug');
|
|
7
|
-
require('
|
|
6
|
+
require('node:fs');
|
|
7
|
+
require('picocolors');
|
|
8
|
+
require('node:module');
|
|
9
|
+
require('node:path');
|
|
10
|
+
require('pathe');
|
|
8
11
|
require('@intlify/shared');
|
|
12
|
+
require('fast-glob');
|
|
9
13
|
require('@rollup/pluginutils');
|
|
10
14
|
require('@intlify/bundle-utils');
|
|
11
|
-
require('
|
|
12
|
-
require('
|
|
13
|
-
require('
|
|
15
|
+
require('vue/compiler-sfc');
|
|
16
|
+
require('@intlify/vue-i18n-extensions');
|
|
17
|
+
require('@typescript-eslint/scope-manager');
|
|
18
|
+
require('@typescript-eslint/typescript-estree');
|
|
19
|
+
require('@eslint-community/eslint-utils');
|
|
14
20
|
|
|
15
21
|
const vite = index.unplugin.vite;
|
|
16
22
|
|
package/lib/vite.mjs
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { unplugin } from './index.mjs';
|
|
2
2
|
import 'unplugin';
|
|
3
|
-
import 'pathe';
|
|
4
3
|
import 'debug';
|
|
5
|
-
import '
|
|
4
|
+
import 'node:fs';
|
|
5
|
+
import 'picocolors';
|
|
6
|
+
import 'node:module';
|
|
7
|
+
import 'node:path';
|
|
8
|
+
import 'pathe';
|
|
6
9
|
import '@intlify/shared';
|
|
10
|
+
import 'fast-glob';
|
|
7
11
|
import '@rollup/pluginutils';
|
|
8
12
|
import '@intlify/bundle-utils';
|
|
9
|
-
import '
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
13
|
+
import 'vue/compiler-sfc';
|
|
14
|
+
import '@intlify/vue-i18n-extensions';
|
|
15
|
+
import '@typescript-eslint/scope-manager';
|
|
16
|
+
import '@typescript-eslint/typescript-estree';
|
|
17
|
+
import '@eslint-community/eslint-utils';
|
|
12
18
|
|
|
13
19
|
const vite = unplugin.vite;
|
|
14
20
|
|
package/lib/webpack.cjs
CHANGED
|
@@ -2,15 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index.cjs');
|
|
4
4
|
require('unplugin');
|
|
5
|
-
require('pathe');
|
|
6
5
|
require('debug');
|
|
7
|
-
require('
|
|
6
|
+
require('node:fs');
|
|
7
|
+
require('picocolors');
|
|
8
|
+
require('node:module');
|
|
9
|
+
require('node:path');
|
|
10
|
+
require('pathe');
|
|
8
11
|
require('@intlify/shared');
|
|
12
|
+
require('fast-glob');
|
|
9
13
|
require('@rollup/pluginutils');
|
|
10
14
|
require('@intlify/bundle-utils');
|
|
11
|
-
require('
|
|
12
|
-
require('
|
|
13
|
-
require('
|
|
15
|
+
require('vue/compiler-sfc');
|
|
16
|
+
require('@intlify/vue-i18n-extensions');
|
|
17
|
+
require('@typescript-eslint/scope-manager');
|
|
18
|
+
require('@typescript-eslint/typescript-estree');
|
|
19
|
+
require('@eslint-community/eslint-utils');
|
|
14
20
|
|
|
15
21
|
const webpack = index.unplugin.webpack;
|
|
16
22
|
|
package/lib/webpack.mjs
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { unplugin } from './index.mjs';
|
|
2
2
|
import 'unplugin';
|
|
3
|
-
import 'pathe';
|
|
4
3
|
import 'debug';
|
|
5
|
-
import '
|
|
4
|
+
import 'node:fs';
|
|
5
|
+
import 'picocolors';
|
|
6
|
+
import 'node:module';
|
|
7
|
+
import 'node:path';
|
|
8
|
+
import 'pathe';
|
|
6
9
|
import '@intlify/shared';
|
|
10
|
+
import 'fast-glob';
|
|
7
11
|
import '@rollup/pluginutils';
|
|
8
12
|
import '@intlify/bundle-utils';
|
|
9
|
-
import '
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
13
|
+
import 'vue/compiler-sfc';
|
|
14
|
+
import '@intlify/vue-i18n-extensions';
|
|
15
|
+
import '@typescript-eslint/scope-manager';
|
|
16
|
+
import '@typescript-eslint/typescript-estree';
|
|
17
|
+
import '@eslint-community/eslint-utils';
|
|
12
18
|
|
|
13
19
|
const webpack = unplugin.webpack;
|
|
14
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlify/unplugin-vue-i18n",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.2",
|
|
4
4
|
"description": "unplugin for Vue I18n",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"petite-vue-i18n": "*",
|
|
14
|
-
"vue
|
|
15
|
-
"vue-i18n
|
|
14
|
+
"vue": "^3.2.25",
|
|
15
|
+
"vue-i18n": "*"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"petite-vue-i18n": {
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
},
|
|
21
21
|
"vue-i18n": {
|
|
22
22
|
"optional": true
|
|
23
|
-
},
|
|
24
|
-
"vue-i18n-bridge": {
|
|
25
|
-
"optional": true
|
|
26
23
|
}
|
|
27
24
|
},
|
|
28
25
|
"dependencies": {
|
|
26
|
+
"@eslint-community/eslint-utils": "^4.4.0",
|
|
29
27
|
"@intlify/bundle-utils": "^9.0.0-beta.0",
|
|
30
28
|
"@intlify/shared": "next",
|
|
29
|
+
"@intlify/vue-i18n-extensions": "^6.2.0",
|
|
31
30
|
"@rollup/pluginutils": "^5.1.0",
|
|
32
|
-
"@
|
|
31
|
+
"@typescript-eslint/scope-manager": "^7.13.0",
|
|
32
|
+
"@typescript-eslint/typescript-estree": "^7.13.0",
|
|
33
33
|
"debug": "^4.3.3",
|
|
34
34
|
"fast-glob": "^3.2.12",
|
|
35
35
|
"js-yaml": "^4.1.0",
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
"pathe": "^1.0.0",
|
|
38
38
|
"picocolors": "^1.0.0",
|
|
39
39
|
"source-map-js": "^1.0.2",
|
|
40
|
-
"unplugin": "^1.1.0"
|
|
40
|
+
"unplugin": "^1.1.0",
|
|
41
|
+
"vue": "^3.4"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"unbuild": "^2.0.0"
|
|
@@ -95,17 +96,10 @@
|
|
|
95
96
|
"directory": "packages/unplugin-vue-i18n"
|
|
96
97
|
},
|
|
97
98
|
"scripts": {
|
|
98
|
-
"dev:vite": "vite examples/vite --config ./examples/vite/vite.config.ts",
|
|
99
|
-
"dev:webpack": "yarn build && webpack serve --config ./examples/webpack/webpack.config.js",
|
|
100
99
|
"build": "unbuild",
|
|
101
|
-
"
|
|
102
|
-
"build:example:vite": "vite build --config ./examples/vite/vite.config.ts --outDir ./examples/vite/dist",
|
|
103
|
-
"build:example:webpack": "yarn build && webpack --config ./examples/webpack/webpack.config.js",
|
|
104
|
-
"clean": "npm-run-all \"clean:*\"",
|
|
100
|
+
"clean": "run-p \"clean:*\"",
|
|
105
101
|
"clean:lib": "rm -rf ./lib",
|
|
106
|
-
"test": "yarn test:e2e",
|
|
107
|
-
"test:e2e": "jest --runInBand --config ./jest.e2e.config.js",
|
|
108
102
|
"changelog": "jiti ../../scripts/changelog.ts",
|
|
109
103
|
"release": "jiti ../../scripts/release.ts"
|
|
110
104
|
}
|
|
111
|
-
}
|
|
105
|
+
}
|